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:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$SKIP_MIGRATIONS" != "true" ]; then
|
||||
node scripts/migrate.mjs
|
||||
fi
|
||||
|
||||
exec node server.js
|
||||
Reference in New Issue
Block a user