From fe944dd27035eb8e7615e7ad13164e6297526625 Mon Sep 17 00:00:00 2001 From: Nick Oliver Date: Wed, 27 Mar 2024 14:50:27 -0700 Subject: [PATCH] perf(image): remove unneeded cache from node_modules https://github.com/sindresorhus/find-cache-dir --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index b0efb5f3a..a24297c5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,8 @@ RUN NODE_ENV=development npm run build && \ # prod build RUN NODE_ENV=production npm run build && \ NODE_ENV=production npm prune && \ + # https://github.com/sindresorhus/find-cache-dir + rm -Rf node_modules/.cache && \ mkdir -p /opt/one-app/production && \ chown node:node /opt/one-app/production && \ mv /opt/build/LICENSE.txt /opt/one-app/production && \