Tweaked Dockerfile

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