Skip to content

Commit

Permalink
fix: Clean cache before installing
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Apr 3, 2024
1 parent 6270fcf commit 287eb2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN apk add --no-cache py3-setuptools python3-dev build-base
# install dependencies
COPY package.json /app/package.json
COPY package-lock.json /app/package-lock.json
RUN npm cache clean --force
RUN npm install

# build the app
Expand All @@ -19,6 +20,7 @@ RUN npm run build
RUN npm run test

# remove devDependencies, keep only used dependencies
RUN npm cache clean --force
RUN npm install --only=production

FROM node:18-alpine
Expand Down

0 comments on commit 287eb2e

Please sign in to comment.