Skip to content

Commit

Permalink
Drop nx cache during docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Jul 18, 2024
1 parent 034db33 commit b544a90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ COPY landing /usr/src/app/landing

# Build and clean

RUN npm install && npm run build && \
rm -rf node_modules */*/node_modules && \
npm install --production --ignore-scripts && \
npm cache clean --force
RUN npm install
RUN npm run build -- --skip-nx-cache
RUN rm -rf node_modules */*/node_modules
RUN npm install --production --ignore-scripts
RUN npm cache clean --force

FROM node-minimal as tom-server

Expand Down

0 comments on commit b544a90

Please sign in to comment.