From cdcea54efe0dd544471c6c712bf0b1fc9edb0ab7 Mon Sep 17 00:00:00 2001 From: Anton Bronnikov Date: Fri, 2 Feb 2024 11:33:46 +0200 Subject: [PATCH 1/2] [feat] build multiplatform docker images (`amd64` + `arm64`) --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1373d09..4ac0088 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,7 +52,7 @@ jobs: push: true build-args: | VERSION=${{ env.RELEASE_VERSION }} - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From c245230cdcda818ca4eef3d0229baea40aa89467 Mon Sep 17 00:00:00 2001 From: Anton Bronnikov Date: Fri, 2 Feb 2024 12:02:33 +0200 Subject: [PATCH 2/2] [feat] build multiplatform docker images (`amd64` + `arm64`) see also: https://github.com/nodejs/docker-node/issues/1335 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a3c4f46..ea42bc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ WORKDIR /app COPY . /app # Install app dependencies and build the application -RUN cd core && rm -f ./src/output/wallets.json && yarn install && yarn script.createWallets && yarn build && cd .. -RUN cd cli && yarn install && yarn build && cd .. +RUN cd core && rm -f ./src/output/wallets.json && yarn install --network-timeout 1000000 && yarn script.createWallets && yarn build && cd .. +RUN cd cli && yarn install --network-timeout 1000000 && yarn build && cd .. # Use an official Node runtime as a parent image for the runtime stage FROM node:16 as runtime