Tweaked Dockerfile

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