qemu
This commit is contained in:
1 parent
a17309e17c
commit
f9f94cc33c
2 files changed
+9
-2
No files matched your search
+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