From 7e308b01cc0aab2c8a548614f981c037974c13c5 Mon Sep 17 00:00:00 2001 From: WangDL Date: Sat, 9 May 2026 19:37:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Prisma=20binaryTargets=20linux-musl-open?= =?UTF-8?q?ssl-3.0.x=20+=20Dockerfile=20=E7=B2=BE=E7=AE=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- prisma/schema.prisma | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd77901..8758bd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:22-alpine AS builder WORKDIR /app -RUN apk add --no-cache openssl openssl1.1-compat +RUN apk add --no-cache openssl COPY package.json package-lock.json ./ RUN npm ci @@ -19,7 +19,7 @@ FROM node:22-alpine WORKDIR /app -RUN apk add --no-cache openssl openssl1.1-compat +RUN apk add --no-cache openssl COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/dist ./dist diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 298a586..5ebbe2c 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1,5 +1,6 @@ generator client { - provider = "prisma-client-js" + provider = "prisma-client-js" + binaryTargets = ["native", "linux-musl-openssl-3.0.x"] } datasource db {