From 28bed3f8453bf12062b938aa0247e24d56f183d6 Mon Sep 17 00:00:00 2001 From: Kai Ehrhardt <59036056+kaiehrhardt@users.noreply.github.com> Date: Sun, 28 Apr 2024 04:53:39 +0200 Subject: [PATCH] feat(container): add arm64 build (#4049) fixes #3926 --- .github/workflows/container-build.yml | 3 +-- Dockerfile.ci | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/container-build.yml b/.github/workflows/container-build.yml index 84244d68ac..8c8acac2ce 100644 --- a/.github/workflows/container-build.yml +++ b/.github/workflows/container-build.yml @@ -41,5 +41,4 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - # disable arm build for now, because of https://github.com/nodejs/docker-node/issues/1335 - platforms: linux/amd64 #,linux/arm64 + platforms: linux/amd64,linux/arm64 diff --git a/Dockerfile.ci b/Dockerfile.ci index a2c22203a1..31c33f3966 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -1,7 +1,7 @@ FROM docker.io/library/node:18-buster AS builder WORKDIR /src COPY . ./ -RUN yarn install && \ +RUN yarn install --frozen-lockfile --network-timeout 100000 && \ yarn run build && \ # Commit lint CLI packages npm pack @commitlint/cli && \ @@ -26,6 +26,8 @@ RUN yarn install && \ FROM docker.io/library/node:18-buster COPY --from=builder /src/*.tgz ./ -RUN npm install -g *.tgz && \ +RUN npm config set fetch-retry-mintimeout 20000 && \ + npm config set fetch-retry-maxtimeout 120000 && \ + npm install --no-audit -g *.tgz && \ rm -rf *.tgz ENTRYPOINT ["commitlint"]