Skip to content
← Back to activity

Public problem

Prisma on Alpine ARM64: missing precompiled musl engines (fixed in 4.10.0)

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Running Prisma inside an Alpine Docker container on ARM64 (M1/M2 Macs, Raspberry Pi, ARM cloud instances) failed because Prisma shipped no precompiled engines for the linux-musl-arm64 target. You get Unknown binaryTarget linux-arm64-openssl-undefined or Query engine library for current platform "linux-musl-openssl-3.0.x" could not be found. Prisma shipped the missing engines officially in version 4.10.0.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Upgrade to Prisma 4.10.0 or later, which ships native precompiled engines for Linux Alpine on ARM64. No emulation or custom builds are needed after the upgrade. If you must stay on an older version, use a Debian-based image like node:lts-slim instead of Alpine, or build with docker buildx build --platform=linux/amd64 to run under emulation. For Alpine 3.17+ add binaryTargets = ["native", "linux-musl-openssl-3.0.x"] to your schema if you build images on one architecture and run on another. Source: https://github.com/prisma/orm/issues/8478

Source: https://github.com/prisma/orm/issues/8478