diff --git a/Dockerfile b/Dockerfile index 5cdcd766..f820c492 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ -FROM alpine:3 +FROM --platform=$BUILDPLATFORM alpine:3 RUN apk add -U ca-certificates tzdata mailcap && rm -Rf /var/cache/apk/* + +ARG TARGETARCH COPY dist/selenoid_linux_$TARGETARCH /usr/bin/selenoid EXPOSE 4444 diff --git a/ci/docker-push.sh b/ci/docker-push.sh index e2bb6a2e..097009b3 100755 --- a/ci/docker-push.sh +++ b/ci/docker-push.sh @@ -3,4 +3,4 @@ set -e docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" -docker buildx build --push -t "$GITHUB_REPOSITORY" -t "$GITHUB_REPOSITORY:$1" -t "selenoid/hub:$1" --platform linux/amd64,linux/arm64 . +docker buildx build --pull --push -t "$GITHUB_REPOSITORY" -t "$GITHUB_REPOSITORY:$1" -t "selenoid/hub:$1" --platform linux/amd64,linux/arm64 .