chore(deploy): Dockerfile + Dockge compose + deploy guide

This commit is contained in:
2026-05-21 09:51:52 +02:00
parent 34431331e9
commit 34b6c8d945
5 changed files with 186 additions and 0 deletions

9
docker-entrypoint.sh Executable file
View 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