From fa4e227f7be7dadbc00a331bc6c37aed8a2c8e8f Mon Sep 17 00:00:00 2001 From: PsycoStea <105074722+PsycoStea@users.noreply.github.com> Date: Sat, 3 Oct 2026 08:21:16 +0200 Subject: [PATCH] fix(nginxproxymanager): clean yarn cache after builds to prevent disk growth (#17653) * fix(nginxproxymanager): clean yarn cache after builds * fix(nginxproxymanager): clean yarn cache after builds --- ct/nginxproxymanager.sh | 2 ++ install/nginxproxymanager-install.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index 05d2a5832..d049e228b 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -216,6 +216,7 @@ EOF $STD yarn install --network-timeout 600000 $STD yarn locale-compile $STD yarn build + $STD yarn cache clean cp -r /opt/nginxproxymanager/frontend/dist/* /app/frontend cp -r /opt/nginxproxymanager/frontend/public/images/* /app/frontend/images msg_ok "Built Frontend" @@ -241,6 +242,7 @@ EOF sed -i 's/"client": "sqlite3"/"client": "better-sqlite3"/' /app/config/production.json cd /app $STD yarn install --network-timeout 600000 + $STD yarn cache clean msg_ok "Initialized Backend" msg_info "Starting Services" diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index 992eb4990..f7d651892 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -138,6 +138,7 @@ sed -E -i 's/"node-sass" *: *"([^"]*)"/"sass": "\1"/g' package.json $STD yarn install --network-timeout 600000 $STD yarn locale-compile $STD yarn build +$STD yarn cache clean cp -r /opt/nginxproxymanager/frontend/dist/* /app/frontend cp -r /opt/nginxproxymanager/frontend/public/images/* /app/frontend/images msg_ok "Built Frontend" @@ -162,6 +163,7 @@ EOF fi cd /app $STD yarn install --network-timeout 600000 +$STD yarn cache clean msg_ok "Initialized Backend" msg_info "Creating Service"