From ece3063f117f25beb11975bb64f74e13bb8e56d8 Mon Sep 17 00:00:00 2001 From: Nagendra Dhanakeerthi Date: Sun, 28 Apr 2024 00:53:40 +0400 Subject: [PATCH] Docker build fix - arm platform --- .github/workflows/ui-docker-build.yml | 2 +- .github/workflows/ui-docker-hub-push-tags.yaml | 2 +- ui/Dockerfile | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ui-docker-build.yml b/.github/workflows/ui-docker-build.yml index fc2059a2..8585c970 100644 --- a/.github/workflows/ui-docker-build.yml +++ b/.github/workflows/ui-docker-build.yml @@ -40,6 +40,6 @@ jobs: tags: | ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} ${{ env.IMAGE_NAME }}:${{ github.sha }} - platforms: linux/arm64 + platforms: linux/amd64 load: true no-cache: true diff --git a/.github/workflows/ui-docker-hub-push-tags.yaml b/.github/workflows/ui-docker-hub-push-tags.yaml index 8c927e3e..71c4b656 100644 --- a/.github/workflows/ui-docker-hub-push-tags.yaml +++ b/.github/workflows/ui-docker-hub-push-tags.yaml @@ -40,6 +40,6 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/arm64 + platforms: linux/amd64 load: true no-cache: true diff --git a/ui/Dockerfile b/ui/Dockerfile index f4758a33..94eb3a74 100644 --- a/ui/Dockerfile +++ b/ui/Dockerfile @@ -8,13 +8,6 @@ WORKDIR /app # Copy package.json and package-lock.json (or yarn.lock if using Yarn) COPY package*.json ./ -# Set npm configuration to handle timeouts and retries -ENV NPM_CONFIG_LOGLEVEL=warn -ENV NPM_CONFIG_FETCH_RETRIES=5 -ENV NPM_CONFIG_FETCH_RETRY_FACTOR=2 -ENV NPM_CONFIG_FETCH_RETRY_MINTIMEOUT=20000 -ENV NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT=120000 - # Install dependencies RUN npm ci