fix(backup-service): 添加 DATABASE_URL 用于 Prisma generate

构建时需要 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 10:17:43 -08:00
parent a17ac1b06a
commit 62dcc37b28
1 changed files with 2 additions and 2 deletions

View File

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