fix: run API on bookworm with debian Prisma engine

This commit is contained in:
mahmood
2026-09-10 14:45:47 +03:30
parent 88bb7b1fbf
commit 7d93507089
8 changed files with 28 additions and 5 deletions
+4 -2
View File
@@ -1,13 +1,15 @@
FROM docker.arvancloud.ir/node:20-bookworm-slim
FROM docker.arvancloud.ir/node:20-bookworm
# Pre-built on the developer machine:
# pnpm build:release
# NOTE: full "bookworm" (not -slim/-alpine) on purpose — Prisma's query engine
# links against libssl.so.3, which the slim/alpine variants do not ship, and the
# deploy host cannot reach apt/apk mirrors to install it.
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/ ./