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
This commit is contained in:
PsycoStea
2026-10-03 08:21:16 +02:00
committed by GitHub
parent 075769abdc
commit fa4e227f7b
2 changed files with 4 additions and 0 deletions

View File

@@ -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"

View File

@@ -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"