mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-22 03:55:50 +00:00
@@ -14,6 +14,9 @@ COPY . .
|
||||
|
||||
# Ensure env exists (optional safety for containers)
|
||||
RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi
|
||||
# Required by prisma generate during image build
|
||||
ARG DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
|
||||
ENV DATABASE_URL=$DATABASE_URL
|
||||
|
||||
# Generate Prisma Client for the Linux environment
|
||||
RUN npx prisma generate
|
||||
|
||||
Reference in New Issue
Block a user