From 2cb79862a4d4d2df3dcac7364873744c3bfbfffb Mon Sep 17 00:00:00 2001 From: Ola Date: Fri, 22 May 2026 21:41:41 +0200 Subject: [PATCH] build: invoke prisma directly to avoid .bin symlink deref --- docker/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 595633b..a517c20 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -4,8 +4,10 @@ set -e # Sync schema to the mounted SQLite volume. `db push` is fine for a single-tenant # MVP where we don't need an audit trail of migrations. Switch to `migrate deploy` # once the schema stabilizes and we want versioned migrations. +# Invoke prisma directly via the package — .bin/prisma symlink gets dereferenced +# by Docker COPY which breaks the relative wasm resolution it relies on. echo "→ Running prisma db push" -npx prisma db push --skip-generate --accept-data-loss=false +node ./node_modules/prisma/build/index.js db push --skip-generate --accept-data-loss=false # Optionally seed when explicitly requested. Idempotent (upsert). if [ "${RUN_SEED:-false}" = "true" ]; then