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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user