🐳 Set up envs for the TDrive (#19)

- remove php upstream from nginx config
- fix docker-compose configuration
This commit is contained in:
Anton Shepilov
2023-04-13 15:27:10 +02:00
committed by GitHub
parent e0615fa867
commit 01630194fc
7 changed files with 75 additions and 57 deletions
+8 -7
View File
@@ -28,13 +28,14 @@ FROM node-base as installed-libs
COPY backend/node/ .
#Install dev dependancies for build
RUN NODE_ENV=development npm install && \
#Build in production mode
export NODE_ENV=production && \
npm run build && \
rm -rf node_modules && \
#Install prod dependancies after build
npm install --legacy-peer-deps
RUN export NODE_ENV=development
RUN npm install
#Build in production mode
RUN export NODE_ENV=production
RUN npm run build
RUN rm -rf node_modules
#Install prod dependancies after build
RUN npm install --legacy-peer-deps
# Development Stage
FROM installed-libs as development