Issues with Prisma 5.3.1: OpenSSL Version Mismatch during Build and Runtime in Docker
I am encountering issues with my setup involving Prisma 5.3.1 and Docker. During the build process, I receive the following error: in this GitHub issue, https://github.com/prisma/prisma/issues/16232 which suggests that there is no need to install OpenSSL manually. However, this did not resolve the issue for me.Is there a specific configuration I am missing in my Dockerfile or schema.prisma file that can ensure compatibility?
Is there a recommended way to ensure that the Prisma Client is correctly generated for the required OpenSSL version within a Docker environment?
Project Details:
Prisma Version: 5.3.1
Node Version: 20
Docker Image: node:20-bookworm and node:20-bookworm-slim
5 Replies
This is the full error when I ran docker container as well.
Did you update your
schema.prisma
with the suggested code?
@Jon Harrell nope. I have two confusion.
1- Do I really have to install openssl? If yes, do i have to install specifically
openssl-1.1.x
?
RUN --mount=type=cache,target=/var/cache/apt \
apt-get update && \
apt-get --no-install-recommends install -y openssl && \
rm -rf /var/lib/apt/lists/*
2- Should I really add the binaryTargets in Array?
Add the string
"linux-arm64-openssl-1.1.x"
to binaryTargets
in your prisma.schema
and see if that resolves the issue.Will try but should i use 3.x.x? Isn't it up to date one