From 7d7b55f0603ea50d8f974c6d7f95e61dba482331 Mon Sep 17 00:00:00 2001 From: Darian Date: Tue, 20 Oct 2026 01:22:27 +0330 Subject: [PATCH] Fix VPS build: drop Docker cache mount unsupported on host daemon. Co-authored-by: Cursor --- scripts/vps-autodeploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vps-autodeploy.sh b/scripts/vps-autodeploy.sh index 1cbe7f1..f93e470 100644 --- a/scripts/vps-autodeploy.sh +++ b/scripts/vps-autodeploy.sh @@ -12,13 +12,13 @@ export NEXT_PUBLIC_SITE_URL="${NEXT_PUBLIC_SITE_URL:-https://edu.mstaut.ir}" export NODE_OPTIONS="${NODE_OPTIONS:---max-old-space-size=3072}" echo "Building Next.js at $ROOT (Node 22 container)…" -DOCKER_BUILDKIT=1 docker run --rm \ +# No BuildKit cache mounts — stock docker on the VPS does not support type=cache. +docker run --rm \ -e DISABLE_REACT_COMPILER=1 \ -e NEXT_TELEMETRY_DISABLED=1 \ -e NEXT_PUBLIC_SITE_URL \ -e NODE_OPTIONS \ -v "$ROOT:/app" -w /app \ - --mount type=cache,target=/root/.npm \ node:22-alpine \ sh -ec 'npm ci --no-audit --no-fund && npm run build'