added NODE_ENV

This commit is contained in:
SrGooglo 2023-04-04 11:26:48 +00:00
parent 43ba86986a
commit ea589425cb

View File

@ -1,4 +1,5 @@
FROM node:16-bullseye
ENV NODE_ENV=production
RUN apt update
RUN apt install python -y
@ -16,4 +17,4 @@ RUN chmod -R 777 /home/node/app
RUN npm install
RUN npm run build
CMD ["NODE_ENV=production", "node", "/home/node/app/dist/index.js"]
CMD ["node", "/home/node/app/dist/index.js"]