Tweaked Dockerfile
This commit is contained in:
+1
-2
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user