Tweaked Dockerfile
This commit is contained in:
+2
-1
@@ -3,7 +3,8 @@ FROM node:15
|
||||
WORKDIR "/app"
|
||||
COPY package*.json ./
|
||||
COPY . /app
|
||||
RUN "npm install --production"
|
||||
EXPOSE 3300
|
||||
USER node
|
||||
ENTRYPOINT ["bash", "-c"]
|
||||
CMD ["npm install --production && sleep 10 && npm start"]
|
||||
CMD ["sleep 10 && npm start"]
|
||||
|
||||
Reference in New Issue
Block a user