P
Prisma2w ago
Shiki

Docker with Prisma / Deno on Mac M1

2 Replies
Prisma AI Help
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
RaphaelEtim
RaphaelEtim2w ago
Hi @Shiki In your schema file, you've specified:
binaryTargets = ["linux-arm64-openssl-1.1.x"]
binaryTargets = ["linux-arm64-openssl-1.1.x"]
This tells Prisma to use the OpenSSL 1.1.x version. However, in your Dockerfile, you're installing the latest version of OpenSSL:
RUN apt-get update -y && apt-get install -y --no-install-recommends openssl libssl-dev
RUN apt-get update -y && apt-get install -y --no-install-recommends openssl libssl-dev
This likely installs OpenSSL 3.x on the Debian-based Deno image. The error message is that Prisma can't find libssl.so.1.1, which is the OpenSSL 1.1.x library. Can you update your binaryTargets to use OpenSSL 3.x, which is likely what's installed in your container?
binaryTargets = ["linux-arm64-openssl-3.0.x"]
binaryTargets = ["linux-arm64-openssl-3.0.x"]
Remember to regenerate the Prisma Client when the change is done.

Did you find this page helpful?