Tweaked Dockerfile

This commit is contained in:
2021-04-03 02:11:14 +11:00
parent 5a83f433b6
commit 646a0293a5
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 3200
USER node
ENTRYPOINT ["bash", "-c"]
CMD ["sleep 10 && npm start"]
CMD ["npm install --production && sleep 10 && npm start"]