Tweaked Dockerfile

This commit is contained in:
2021-04-03 02:34:51 +11:00
parent 646a0293a5
commit e34bcb2aa8
+2 -1
View File
@@ -3,7 +3,8 @@ FROM node:15
WORKDIR "/app"
COPY package*.json ./
COPY . /app
RUN "npm install --production"
EXPOSE 3200
USER node
ENTRYPOINT ["bash", "-c"]
CMD ["npm install --production && sleep 10 && npm start"]
CMD ["sleep 10 && npm start"]