mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-29 11:03:45 +00:00
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:
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user