qemu
This commit is contained in:
1 parent
a17309e17c
commit
f9f94cc33c
2 files changed
+9
-2
No files matched your search
@@ -20,6 +20,11 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up QEMU (for multi-arch emulation)
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
platforms: arm64
|
||||
|
||||
- name: Set up Docker Buildx (multiarch)
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
@@ -67,4 +72,4 @@ jobs:
|
||||
docker compose down
|
||||
docker compose pull
|
||||
docker compose up -d
|
||||
docker system prune -af
|
||||
docker system prune -af
|
||||
+3
-1
@@ -14,7 +14,9 @@ RUN npm run build
|
||||
FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-alpine AS deps
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
# For arm64 under QEMU, alpine + musl can trigger Illegal instruction with npm ci.
|
||||
# Use npm install for broader compatibility.
|
||||
RUN npm install --omit=dev
|
||||
|
||||
## Runtime image (target platform)
|
||||
FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-alpine
|
||||
|
||||
Reference in new issue
Block a user