fix: Prisma OpenSSL engine binary detection on Alpine
Deploy Canina / deploy (push) Successful in 34s

- Set PRISMA_SCHEMA_ENGINE_BINARY to 3.0.x binary path
- Set PRISMA_QUERY_ENGINE_LIBRARY to 3.0.x library path
- node:20-alpine has libssl.so.3 but no openssl CLI binary
- Prisma detection fails silently, defaults to 1.1.x engines
- Explicit paths bypass detection and use correct binaries
- Remove apk add openssl (not needed, causes build failure without VPN)
- backend Dockerfile: use PRISMA_CLI_BINARY_TARGETS to generate correct client
This commit is contained in:
parsa aghaei committed 2026-07-29 09:21:39 +03:30
1 parent 501addc909
commit 431e2b547d
3 files changed
+7 -3

No files matched your search

+2
View File
@@ -32,6 +32,8 @@ services:
- REDIS_HOST=redis_prod
- REDIS_PORT=6379
- PORT=3000
- PRISMA_SCHEMA_ENGINE_BINARY=/app/node_modules/@prisma/engines/schema-engine-linux-musl-openssl-3.0.x
- PRISMA_QUERY_ENGINE_LIBRARY=/app/node_modules/@prisma/engines/libquery_engine-linux-musl-openssl-3.0.x.so.node
labels:
- "traefik.enable=true"
- "traefik.http.routers.canina-api-prod.rule=Host(`api.canina.ir`)"