Skip to content

Commit

Permalink
Flush npm cache on prod builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed Dec 12, 2023
1 parent 9865aab commit ab91231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN npm ci --include=dev \
&& npm run build \
&& cp -RT ./dist /dist \
&& rm -rf ./node_modules ./dist \
&& rm -rf /home/node/.config /home/node/.npm
&& npm cache clean --force

FROM production-builds AS builtin

Expand All @@ -74,4 +74,4 @@ RUN rm -rf ./src ./dist ./public \
&& cd builtin \
&& cp -RT ./dist /dist \
&& rm -rf ./src ./dist ./public ./node_modules \
&& rm -rf /home/node/.config /home/node/.npm
&& npm cache clean --force

0 comments on commit ab91231

Please sign in to comment.