feat: optimize docker build pipeline with dockerignore, automated entrypoint migrations, and configurable compose image
Build and Push Docker Image / build-and-push (push) Failing after 1m1s

This commit is contained in:
2026-08-21 16:59:24 +09:00
parent 364ff4c4e8
commit 9beaebb5d8
6 changed files with 69 additions and 17 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -e
# Run Prisma database migrations if DATABASE_URL is set and not explicitly skipped
if [ -n "$DATABASE_URL" ] && [ "$SKIP_DB_MIGRATE" != "true" ]; then
echo "[CheckFlow] Checking and applying database migrations..."
if [ -f "./node_modules/prisma/build/index.js" ]; then
node ./node_modules/prisma/build/index.js migrate deploy --schema=./prisma/schema.prisma || echo "[CheckFlow] Warning: Prisma migration step skipped or encountered non-fatal error."
fi
fi
exec "$@"