mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-22 03:55:50 +00:00
+7
-2
@@ -18,8 +18,13 @@ RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi
|
||||
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
|
||||
# 2. Add the Prisma Schema specifically before generating
|
||||
# This ensures the generator has the latest schema
|
||||
COPY prisma ./prisma/
|
||||
|
||||
# 3. Generate Prisma Client
|
||||
# We use 'pnpm exec' to ensure we use the local version synced with your node_modules
|
||||
RUN pnpm exec prisma generate
|
||||
|
||||
# Build NestJS
|
||||
RUN pnpm build
|
||||
|
||||
Reference in New Issue
Block a user