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"]