mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-23 04:25: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"
|
ARG DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
|
||||||
ENV DATABASE_URL=$DATABASE_URL
|
ENV DATABASE_URL=$DATABASE_URL
|
||||||
|
|
||||||
# Generate Prisma Client for the Linux environment
|
# 2. Add the Prisma Schema specifically before generating
|
||||||
RUN npx prisma generate
|
# 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
|
# Build NestJS
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|||||||
Reference in New Issue
Block a user