Files
Moonbase/docker-entrypoint.sh
tonym 6603717cbb 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>
2026-06-15 21:36:30 -05:00

8 lines
106 B
Bash

#!/bin/sh
set -e
echo "[moonbase] running prisma migrate deploy..."
npx prisma migrate deploy
exec "$@"