fix: use bookworm + debian Prisma engine
This commit is contained in:
+3
-1
@@ -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/ ./
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
+3
-7
File diff suppressed because one or more lines are too long
+5
-13
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
+1
-1
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user