Simplify Dockerfiles

There is no need to run explicit mkdir, since the new directory is not
used during the build and workdir command creates it automatically.
This commit is contained in:
Vojtěch Káně 2020-01-01 12:49:45 +01:00
parent d4293c9f08
commit 7696ed3952
2 changed files with 0 additions and 4 deletions

View File

@ -1,7 +1,5 @@
FROM node:12-alpine
RUN mkdir /src
# Hack to upgrade NPM:
# - install local version
# - replace old global verson with new one

View File

@ -1,7 +1,5 @@
FROM node:12-alpine
RUN mkdir /src
RUN npm install npm@5.3 && \
rm -rf /usr/local/lib/node_modules/npm && \
mv /node_modules/npm /usr/local/lib/node_modules