v0.5.2 — Fix Docker deploy on NAS (glibc base, openssl, root, full deps)
The NAS container was crash-looping: npx pulled Prisma 7.8.0 (which rejects url in the datasource), and the alpine + non-root + standalone setup couldn't detect openssl or write the migration engine. Switch to the FMB-proven runtime (node:20-bookworm-slim + openssl, run as root, full node_modules, next start) so the local pinned Prisma 5.22 CLI runs and migrations apply cleanly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "Running Prisma migrations..."
|
||||
./node_modules/.bin/prisma migrate deploy
|
||||
echo "[moonbase] running prisma migrate deploy..."
|
||||
npx prisma migrate deploy
|
||||
|
||||
echo "Starting Moon Base..."
|
||||
exec node server.js
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user