Fix Prisma OpenSSL error on Alpine Linux

- Add binaryTargets = ["native", "linux-musl-openssl-3.0.x"] to the
  Prisma generator so the correct engine binary is bundled for Alpine
- Install openssl in the runtime Docker stage via apk

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
deadRabbit
2026-02-22 12:40:18 +01:00
parent 139a13848c
commit 61fc29ea9d
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
}
datasource db {