Skip to content

Commit 1a8440b

Browse files
committed
Make: use buildx
1 parent c2ca71b commit 1a8440b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
DOCKER_IMAGE=dockette/php
2+
DOCKER_PLATFORM?=linux/amd64
23

34
_build-%: VERSION=$*
45
_build-%:
5-
docker build \
6+
docker buildx \
7+
build \
8+
--platform ${DOCKER_PLATFORM} \
69
--pull \
710
-t ${DOCKER_IMAGE}:${VERSION} \
811
./${VERSION}

0 commit comments

Comments
 (0)