fix: use bookworm + debian Prisma engine

This commit is contained in:
mahmood
2026-09-10 13:58:50 +03:30
parent bbbe6a5202
commit 88bb7b1fbf
7 changed files with 16 additions and 26 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
FROM docker.arvancloud.ir/node:20-alpine
FROM docker.arvancloud.ir/node:20-bookworm-slim
# Pre-built on the developer machine:
# pnpm build:release
@@ -7,6 +7,8 @@ WORKDIR /app
ENV NODE_ENV=production
# Vendored Prisma lives in ./vendor (not node_modules — that path is gitignored)
ENV NODE_PATH=/app/vendor
# Force Debian OpenSSL 3 engine (bookworm-slim); avoid wrong musl/openssl-1.1 pick
ENV PRISMA_QUERY_ENGINE_LIBRARY=/app/vendor/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node
COPY release/ ./
+2 -2
View File
@@ -5,8 +5,8 @@
generator client {
provider = "prisma-client-js"
// native = local Windows/macOS; linux-musl* = Arvan/Alpine Docker (OpenSSL detect varies)
binaryTargets = ["native", "linux-musl", "linux-musl-openssl-3.0.x"]
// native = local Windows/macOS; debian-openssl-3.0.x = node:20-bookworm-slim (Arvan)
binaryTargets = ["native", "debian-openssl-3.0.x"]
}
datasource db {
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "prisma-client-7456678a68d33d1115534aa06ea14b6a72845b59f9c4ccefaa27e3167d919ad8",
"name": "prisma-client-d0d5db76aa59566edce744ecac2768fcb398c1a9f370089a45b9416272282fab",
"main": "index.js",
"types": "index.d.ts",
"browser": "index-browser.js",
+2 -2
View File
@@ -5,8 +5,8 @@
generator client {
provider = "prisma-client-js"
// native = local Windows/macOS; linux-musl* = Arvan/Alpine Docker (OpenSSL detect varies)
binaryTargets = ["native", "linux-musl", "linux-musl-openssl-3.0.x"]
// native = local Windows/macOS; debian-openssl-3.0.x = node:20-bookworm-slim (Arvan)
binaryTargets = ["native", "debian-openssl-3.0.x"]
}
datasource db {