From a895d677cb80ba56f28e79a130e9c437d27d7b95 Mon Sep 17 00:00:00 2001 From: Lucas Santana Date: Wed, 1 Apr 2026 19:35:36 -0300 Subject: [PATCH] fix(docker): pass --config to prisma migrate deploy in bot CMD The bot container crash-loops because 'npx prisma migrate deploy' cannot find the datasource URL without the --config flag. The root package.json scripts all pass '--config prisma/prisma.config.ts' but the Dockerfile CMD was missing it, causing prisma to fail with: 'The datasource.url property is required in your Prisma config file' This breaks /version, /play, and all bot commands since the process never reaches node packages/bot/dist/index.js. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e93836dd7..c3189a2da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -101,7 +101,7 @@ USER bot HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD node -e "console.log('Service is running')" || exit 1 -CMD ["sh", "-c", "npx prisma migrate deploy && node packages/bot/dist/index.js"] +CMD ["sh", "-c", "npx prisma migrate deploy --config prisma/prisma.config.ts && node packages/bot/dist/index.js"] # Production stage — backend (slim runtime, no media tools) FROM base-runtime-backend AS production-backend