Add container build for deployment

Standalone Next output, migration script run on start, storage volume
at /app/storage, port 4700. Database connection is created lazily so
the image builds without a database.
This commit is contained in:
Matthias Giesselmann
2026-07-31 21:52:38 +02:00
parent b90ff252d1
commit 7582c64709
6 changed files with 114 additions and 7 deletions
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -e
if [ "$SKIP_MIGRATIONS" != "true" ]; then
node scripts/migrate.mjs
fi
exec node server.js