Tweaked Dockerfile

This commit is contained in:
2021-04-03 02:11:02 +11:00
parent 74869993b0
commit 028bcc99dd
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -2,9 +2,8 @@
FROM node:15
WORKDIR "/app"
COPY package*.json ./
RUN npm install --production
COPY . /app
EXPOSE 3100
USER node
ENTRYPOINT ["bash", "-c"]
CMD ["sleep 10 && npm start"]
CMD ["npm install --production && sleep 10 && npm start"]