Skip to content

Commit

Permalink
build: use docker's --platform arg
Browse files Browse the repository at this point in the history
The arm64v8/ prefix for image naming doesn't appear to be working
anymore for AlmaLinux.
  • Loading branch information
jasonish committed Jun 27, 2024
1 parent e5f4e25 commit 513ac8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build-containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ manifests_pushed=()

name="${DOCKER_NAME}:${tag}-amd64"
${ECHO} docker build \
--build-arg "BASE=amd64/almalinux:9-minimal" \
--platform linux/amd64 \
--build-arg "SRC=./dist/evebox-${version}-linux-x64/evebox" \
-t ${name} \
-f docker/Dockerfile .
tags_built+=(${name})

name="${DOCKER_NAME}:${tag}-arm64v8"
${ECHO} docker build \
--build-arg "BASE=arm64v8/almalinux:9-minimal" \
--platform linux/arm64 \
--build-arg "SRC=./dist/evebox-${version}-linux-arm64/evebox" \
-t ${name} \
-f docker/Dockerfile .
Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG BASE
FROM $BASE
FROM almalinux:9-minimal

ARG SRC="SRC_--build-arg_must_be_set"
COPY $SRC /bin/evebox
Expand Down

0 comments on commit 513ac8e

Please sign in to comment.