Skip to content

Commit

Permalink
[fix] Build frontend docker on build platform instead on target platf…
Browse files Browse the repository at this point in the history
…orm (#3552)
  • Loading branch information
treff7es authored Nov 10, 2021
1 parent 0ad13a5 commit 504a72a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-frontend-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ jobs:
uses: docker/build-push-action@v2
with:
file: ./docker/datahub-frontend/Dockerfile
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
tags: ${{ steps.docker_meta.outputs.tags }}
push: ${{ needs.setup.outputs.publish == 'true' }}
2 changes: 1 addition & 1 deletion docker/datahub-frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN addgroup -S datahub && adduser -S datahub -G datahub
RUN apk --no-cache --update-cache --available upgrade \
&& apk --no-cache add curl openjdk8-jre

FROM node:16.13.0-alpine3.14 AS prod-build
FROM --platform=$BUILDPLATFORM node:16.13.0-alpine3.14 AS prod-build

# Upgrade Alpine and base packages
RUN apk --no-cache --update-cache --available upgrade \
Expand Down

0 comments on commit 504a72a

Please sign in to comment.