Skip to content

Commit

Permalink
πŸ’š backend docker environment variable set fo
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlinagora committed Sep 29, 2024
1 parent ac9700f commit 39a2fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tdrive/docker/tdrive-node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39a2fb1

Please sign in to comment.