Open krunde-amfam opened 1 year ago
Could you try to change from alpine
to slim
instead
https://github.com/prisma/prisma/issues/17071#issuecomment-1420467521
If I use slim then it does build, but my groups standard is to use alpine and slim breaks other items we include.
@jkomyno You mentioned in that linked PR #17071 that Prisma would natively support Alpine images on arm architectures:
[...] and Prisma will also start officially supporting Linux Alpine on arm64 architectures starting from prisma@4.10.0, which will be released in a few hours.
When using Prisma 4.12.0, I'm faced with the same issue as OP (a 404 on the linux-musl-arm64-openssl-3.0.x/libquery_engine.so.node.gz
binary). Switching from node:18-alpine
to node:18-slim
as the base image resolves, it but am I correctly understanding from your comment and docs draft (https://github.com/prisma/docs/issues/4365#issuecomment-1408482282) that the above use case should be supported as per >=prisma@4.10.0
?
Hi @rijkvanzanten, could you please describe the structure of the project you're using Prisma in? Maybe there are two conflicting versions for prisma
and @prisma/client
in your package.json file(s)?
Also, using node:18-alpine
, could you please run prisma version
and copy your output here? Thanks.
Hi @rijkvanzanten, could you please describe the structure of the project you're using Prisma in? Maybe there are two conflicting versions for
prisma
and@prisma/client
in your package.json file(s)?Also, using
node:18-alpine
, could you please runprisma version
and copy your output here? Thanks.
Ah good shout! It was indeed a mismatch in the exact version of prisma
and @prisma/client
that caused the error. Thanks! Where (if at all) are you taking feature requests? It would be nice if prisma
or @prisma/client
could throw a helpful error on version mismatches instead of crashing like this 🙂
Bug description
I am using docker-compose to build a new docker image on a M1 MBP. When the docker image builds it fails on
npx prisma generate
with the following error:From what I have read in other issues this is due to missing binaries provided by the Prisma team.
I have upgraded to the latest version of Prisma 4.10.1
How to reproduce
Here is a stripped down version of my Dockerfile. I can confirm this still fails:
The cron folder is source code which I cannot share, but here is the package.json:
Expected behavior
I expect
npx prisma generate
to succeed. Nothing change changed in the schema file or anything else.Prisma information
Environment & setup
Prisma Version