fix: ensure openssl is installed in all Docker stages and update Prisma schema formatting
Some checks failed
Build & Deploy / build (push) Failing after 1m30s

This commit is contained in:
2026-05-15 00:18:38 +02:00
parent 5dd5ba5459
commit e6ff39c2d0
2 changed files with 7 additions and 2 deletions

View File

@@ -1,12 +1,14 @@
# ---- Dependencies ----
FROM node:20-alpine AS deps
WORKDIR /app
RUN apk add --no-cache openssl
COPY package*.json ./
RUN npm ci
# ---- Builder ----
FROM node:20-alpine AS builder
WORKDIR /app
RUN apk add --no-cache openssl
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npx prisma generate
@@ -16,6 +18,7 @@ RUN npm run build
FROM node:20-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
RUN apk add --no-cache openssl
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

View File

@@ -1,5 +1,7 @@
generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
// native = lokale dev, linux-musl-arm64 = ARM Docker (Alpine)
binaryTargets = ["native", "linux-musl-arm64-openssl-3.0.x"]
}
datasource db {