From 9fc3f4f9d1eaec1c35d2d6ac524c44d93bfe9bc9 Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Tue, 28 Oct 2025 16:27:45 +0000 Subject: [PATCH] fix: Enable ARM64 builds with improved QEMU support - Re-enabled linux/arm64 platform builds - Added PRISMA_CLI_BINARY_TYPE=binary to use pre-compiled binaries - This avoids native compilation issues under QEMU emulation - Use npm script for Prisma generation instead of npx --- .github/workflows/docker.yml | 2 +- docker/backend.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d29d1de..466bf66 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -64,7 +64,7 @@ jobs: with: context: . file: docker/${{ matrix.image }}.Dockerfile - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 # Push if: # - Event is not workflow_dispatch OR input 'push' is true # AND diff --git a/docker/backend.Dockerfile b/docker/backend.Dockerfile index 6bae992..abbf4a3 100644 --- a/docker/backend.Dockerfile +++ b/docker/backend.Dockerfile @@ -49,7 +49,7 @@ WORKDIR /app/backend RUN npm cache clean --force &&\ rm -rf node_modules ~/.npm &&\ npm ci --ignore-scripts --legacy-peer-deps --no-audit &&\ - npx prisma generate &&\ + PRISMA_CLI_BINARY_TYPE=binary npm run db:generate &&\ npm prune --omit=dev &&\ npm cache clean --force