Tweaked Dockerfile

This commit is contained in:
2021-04-03 02:11:21 +11:00
parent 7b85bb1aeb
commit ee5394f895
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 3300
USER node
ENTRYPOINT ["bash", "-c"]
CMD ["sleep 10 && npm start"]
CMD ["npm install --production && sleep 10 && npm start"]