mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-22 20:15:50 +00:00
@@ -14,6 +14,9 @@ COPY . .
|
|||||||
|
|
||||||
# Ensure env exists (optional safety for containers)
|
# Ensure env exists (optional safety for containers)
|
||||||
RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi
|
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
|
# Generate Prisma Client for the Linux environment
|
||||||
RUN npx prisma generate
|
RUN npx prisma generate
|
||||||
|
|||||||
Reference in New Issue
Block a user