Skip to content

Commit

Permalink
Docker build fix - arm platform
Browse files Browse the repository at this point in the history
  • Loading branch information
nagstler committed Apr 27, 2024
1 parent 8e48abd commit ece3063
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ui-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/ui-docker-hub-push-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ece3063

Please sign in to comment.