fix(identity-service): add DATABASE_URL for Prisma generate in Dockerfile

Fix build failure caused by missing DATABASE_URL environment variable
during prisma:generate step. Changed from npm run prisma:generate to
direct npx prisma generate with dummy DATABASE_URL.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Developer 2025-12-02 03:13:33 -08:00
parent 77db1009dd
commit 2a449aff3c
1 changed files with 5 additions and 1 deletions

View File

@ -8,9 +8,13 @@ COPY prisma ./prisma/
RUN npm ci
# Generate Prisma client (dummy DATABASE_URL for build time only)
RUN DATABASE_URL="postgresql://user:pass@localhost:5432/db" npx prisma generate
# Copy source code
COPY . .
RUN npm run prisma:generate
# Build TypeScript
RUN npm run build
# Production stage