chore(deploy): Dockerfile + Dockge compose + deploy guide
This commit is contained in:
9
docker-entrypoint.sh
Executable file
9
docker-entrypoint.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
cd /app
|
||||
|
||||
echo "[entrypoint] Applying database migrations…"
|
||||
node_modules/.bin/tsx packages/backend/src/db/migrate.ts
|
||||
|
||||
echo "[entrypoint] Starting Flashcard on port ${PORT:-3000}…"
|
||||
exec node_modules/.bin/tsx packages/backend/src/index.ts
|
||||
Reference in New Issue
Block a user