fix: run API on bookworm with debian Prisma engine
This commit is contained in:
+4
-2
@@ -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/ ./
|
||||
|
||||
Reference in New Issue
Block a user