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
This commit is contained in:
Muhammad Ibrahim
2025-10-28 16:27:45 +00:00
parent 3029278742
commit 9fc3f4f9d1
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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