Skip to content

Commit

Permalink
Adding buildx command for multiplatform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
durbrow committed Mar 27, 2024
1 parent 2a26be5 commit 1e1d4fb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ REPO=ncbi/sra-tools
TAG=${DOCKER_ARCH}-${VERSION}

.DEFAULT: build
.PHONY: build push manifest clean test help
.PHONY: build buildx push manifest clean test help

help:
@ echo "targets are: build, test, push, manifest, and clean"
Expand Down Expand Up @@ -39,3 +39,13 @@ clean:
docker image rm ${REPO}:${TAG}
docker manifest rm ${REPO}:latest
docker manifest rm ${REPO}:${VERSION}

buildx:
docker buildx build \
--platform=linux/amd64,linux/arm64 \
--build-arg VDB_BRANCH=${BRANCH} \
--tag ${REPO}:${VERSION} \
--file Dockerfile.build-alpine \
--pull \
--push \
.

0 comments on commit 1e1d4fb

Please sign in to comment.