Skip to content

Commit 257eaac

Browse files
committed
Makefile: fix multi-platform image build
platform now appears to be required due to a change in Docker docker-library/official-images#17896 Change-Id: I063bc60106964440d263e615803fba88da48dbd4
1 parent e7acbc4 commit 257eaac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ LATEST_DEV_TAG := dev
177177

178178
.PHONY: images
179179
images: ## Build Docker images
180-
${DOCKER_BUILD} --pull=true -t storjlabs/gateway:${TAG}-amd64 \
180+
${DOCKER_BUILD} --platform linux/amd64 --pull=true -t storjlabs/gateway:${TAG}-amd64 \
181181
-f Dockerfile .
182-
${DOCKER_BUILD} --pull=true -t storjlabs/gateway:${TAG}-arm32v6 \
182+
${DOCKER_BUILD} --platform linux/arm/v6 --pull=true -t storjlabs/gateway:${TAG}-arm32v6 \
183183
--build-arg=GOARCH=arm \
184184
--build-arg=DOCKER_ARCH=arm32v6 \
185185
-f Dockerfile .
186-
${DOCKER_BUILD} --pull=true -t storjlabs/gateway:${TAG}-arm64v8 \
186+
${DOCKER_BUILD} --platform linux/arm64 --pull=true -t storjlabs/gateway:${TAG}-arm64v8 \
187187
--build-arg=GOARCH=arm64 \
188188
--build-arg=DOCKER_ARCH=arm64v8 \
189189
-f Dockerfile .

0 commit comments

Comments
 (0)