mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-04 16:09:40 +00:00
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:
@@ -216,6 +216,7 @@ EOF
|
|||||||
$STD yarn install --network-timeout 600000
|
$STD yarn install --network-timeout 600000
|
||||||
$STD yarn locale-compile
|
$STD yarn locale-compile
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
|
$STD yarn cache clean
|
||||||
cp -r /opt/nginxproxymanager/frontend/dist/* /app/frontend
|
cp -r /opt/nginxproxymanager/frontend/dist/* /app/frontend
|
||||||
cp -r /opt/nginxproxymanager/frontend/public/images/* /app/frontend/images
|
cp -r /opt/nginxproxymanager/frontend/public/images/* /app/frontend/images
|
||||||
msg_ok "Built Frontend"
|
msg_ok "Built Frontend"
|
||||||
@@ -241,6 +242,7 @@ EOF
|
|||||||
sed -i 's/"client": "sqlite3"/"client": "better-sqlite3"/' /app/config/production.json
|
sed -i 's/"client": "sqlite3"/"client": "better-sqlite3"/' /app/config/production.json
|
||||||
cd /app
|
cd /app
|
||||||
$STD yarn install --network-timeout 600000
|
$STD yarn install --network-timeout 600000
|
||||||
|
$STD yarn cache clean
|
||||||
msg_ok "Initialized Backend"
|
msg_ok "Initialized Backend"
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ sed -E -i 's/"node-sass" *: *"([^"]*)"/"sass": "\1"/g' package.json
|
|||||||
$STD yarn install --network-timeout 600000
|
$STD yarn install --network-timeout 600000
|
||||||
$STD yarn locale-compile
|
$STD yarn locale-compile
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
|
$STD yarn cache clean
|
||||||
cp -r /opt/nginxproxymanager/frontend/dist/* /app/frontend
|
cp -r /opt/nginxproxymanager/frontend/dist/* /app/frontend
|
||||||
cp -r /opt/nginxproxymanager/frontend/public/images/* /app/frontend/images
|
cp -r /opt/nginxproxymanager/frontend/public/images/* /app/frontend/images
|
||||||
msg_ok "Built Frontend"
|
msg_ok "Built Frontend"
|
||||||
@@ -162,6 +163,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
cd /app
|
cd /app
|
||||||
$STD yarn install --network-timeout 600000
|
$STD yarn install --network-timeout 600000
|
||||||
|
$STD yarn cache clean
|
||||||
msg_ok "Initialized Backend"
|
msg_ok "Initialized Backend"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|||||||
Reference in New Issue
Block a user