github.com/GoogleContainerTools/skaffold@v1.39.18/examples/hot-reload/node/Dockerfile (about) 1 FROM node:14.9-alpine 2 3 USER node 4 RUN mkdir /home/node/app 5 WORKDIR /home/node/app 6 7 EXPOSE 3000 8 ARG ENV=production 9 ENV NODE_ENV $ENV 10 CMD npm run $NODE_ENV 11 12 COPY --chown=node:node package* ./ 13 # examples don't use package-lock.json to minimize updates 14 RUN npm install --no-package-lock 15 COPY --chown=node:node . .