💚 backend docker environment variable set fo

This commit is contained in:
Eric Doughty-Papassideris
2024-09-29 18:04:58 +02:00
parent ac9700f9b5
commit 65939725a1
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -23,11 +23,11 @@ FROM node-base AS installed-libs
COPY backend/node/ .
#Install dev dependancies for build
RUN export NODE_ENV=development
ENV NODE_ENV=development
RUN npm ci
#Build in production mode
RUN export NODE_ENV=production
ENV NODE_ENV=production
RUN npm run build
RUN rm -rf node_modules
#Install prod dependancies after build