Building CT3 app with docker - libssl error

When building ct3 app I get an error saying that in
prisma generate
it can't load libssl package. I've done it before like a milion times in 2022 and it worked. I haven't changed anything in dockerFile since and it is just copied from the docs.

Error:
#13 87.17 > 360review@0.1.0 postinstall /app
#13 87.17 > prisma generate
#13 87.17
#13 97.90 Prisma schema loaded from schema.prisma
#13 100.7 Error: Unable to establish a connection to query-engine-node-api library. It seems there is a problem with your OpenSSL installation!
#13 100.7 Details: Unable to require(`/app/node_modules/.pnpm/prisma@4.7.1/node_modules/prisma/libquery_engine-linux-musl.so.node`)
#13 100.7  Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/.pnpm/prisma@4.7.1/node_modules/prisma/libquery_engine-linux-musl.so.node)
#13 100.7 [Context: getDmmf]
#13 100.7
#13 100.7 Prisma CLI Version : 4.7.1
#13 100.8  ELIFECYCLE  Command failed with exit code 1.
------
executor failed running [/bin/sh -c if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then npm ci;     elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i;     else echo "Lockfile not found." && exit 1;     fi]: exit code: 1
Was this page helpful?