correction du dockerfile pour le cicd

This commit is contained in:
2026-04-13 08:19:29 +02:00
parent c26c3b9485
commit 41373e97f3
4 changed files with 6 additions and 2 deletions

View File

@@ -12,12 +12,13 @@ RUN npm ci
# Rebuild the source code only when needed
FROM base AS builder
RUN apk add --no-cache openssl
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# Generate Prisma Client
RUN npx prisma generate
RUN DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" npx prisma generate
# Build Next.js
RUN npm run build

View File

@@ -12,12 +12,13 @@ RUN npm ci
# Rebuild the source code only when needed
FROM base AS builder
RUN apk add --no-cache openssl
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# Generate Prisma Client
RUN npx prisma generate
RUN DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" npx prisma generate
# Build Next.js
RUN npm run build

View File

@@ -4,6 +4,7 @@ generator client {
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
enum UserRole {

View File

@@ -4,6 +4,7 @@ generator client {
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {