qemu
This commit is contained in:
1 parent
a17309e17c
commit
f9f94cc33c
2 files changed
+8
-1
No files matched your search
@@ -20,6 +20,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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)
|
- name: Set up Docker Buildx (multiarch)
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
+3
-1
@@ -14,7 +14,9 @@ RUN npm run build
|
|||||||
FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-alpine AS deps
|
FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-alpine AS deps
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
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)
|
## Runtime image (target platform)
|
||||||
FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-alpine
|
FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-alpine
|
||||||
|
|||||||
Reference in new issue
Block a user