From ab91231e791d24d478523168d6f8834a4b3fad4e Mon Sep 17 00:00:00 2001 From: Buster Neece Date: Tue, 12 Dec 2023 10:03:51 -0600 Subject: [PATCH] Flush npm cache on prod builds. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9015f93..1a7c9b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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