ci(web): fix permission errors publishing to stable APP_DIR (docker chown+chmod, exclude .pnpm-store); runtime: use container-local PNPM store to avoid host writes
This commit is contained in:
parent
009291f6a2
commit
945b29f317
3 changed files with 11 additions and 2 deletions
|
|
@ -13,6 +13,10 @@ corepack prepare pnpm@9 --activate >/dev/null 2>&1 || true
|
|||
echo "[start-web] Using APP_DIR=$(pwd)"
|
||||
echo "[start-web] NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL:-}"
|
||||
echo "[start-web] NEXT_PUBLIC_CONVEX_URL=${NEXT_PUBLIC_CONVEX_URL:-}"
|
||||
echo "[start-web] PNPM_STORE_DIR=${PNPM_STORE_DIR:-/tmp/pnpm-store}"
|
||||
|
||||
# Ensure pnpm uses container-local store (not host bind mount)
|
||||
pnpm config set store-dir "${PNPM_STORE_DIR:-/tmp/pnpm-store}" >/dev/null 2>&1 || true
|
||||
|
||||
# Prisma generate (idempotent) and apply DB migrations
|
||||
echo "[start-web] prisma generate"
|
||||
|
|
@ -27,4 +31,3 @@ pnpm auth:seed || true
|
|||
|
||||
echo "[start-web] launching Next.js"
|
||||
exec pnpm start -p 3000
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue