fix(docker): ensure prisma generate runs on build and add explicit admin model types
This commit is contained in:
@@ -8,6 +8,7 @@ WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY package.json package-lock.json* ./
|
||||
COPY prisma ./prisma/
|
||||
RUN npm ci --legacy-peer-deps
|
||||
|
||||
|
||||
@@ -17,6 +18,9 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
# Generate Prisma Client
|
||||
RUN npx prisma generate
|
||||
|
||||
# Environment variables must be present at build time for Next.js
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user