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:
parent
d4293c9f08
commit
7696ed3952
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user