Skip to content

Commit

Permalink
🩹tdrive-node: Use npm ci instead of yarn and npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlinagora committed Mar 5, 2024
1 parent af75551 commit 610b684
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tdrive/docker/tdrive-node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ FROM node-base as installed-libs
COPY backend/node/ .
#Install dev dependancies for build
RUN export NODE_ENV=development
RUN npm install
RUN npm ci

#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
RUN npm ci --legacy-peer-deps

# Development Stage
FROM installed-libs as development

ENV NODE_ENV=development
RUN npm install -g pino-pretty && \
npm install -g tsc-watch && \
yarn install
npm ci
CMD ["npm", "run", "dev:debug"]

# Production Stage
Expand Down

0 comments on commit 610b684

Please sign in to comment.