Skip to content

Commit fbe10e9

Browse files
messebclaude
andcommitted
Build multi-platform image (amd64 + arm64)
Removes the hardcoded amd64 base pin, which produced a mislabeled arm64 manifest when built on Apple Silicon. Release target now builds and pushes both platforms via docker buildx. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NqU8S9mRXnyQHrwvU7FFDA
1 parent 668b3bb commit fbe10e9

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 ubuntu:24.04
1+
FROM ubuntu:24.04
22

33
LABEL maintainer="messeb"
44

‎Makefile‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
IMAGE_TAG := $(IMAGE_TAG)
22
IMAGE := mobiledevops/android-sdk-image
33

4-
release: \
5-
tag_image \
6-
dockerhub_push \
7-
8-
tag_image: build
9-
docker tag $(IMAGE):latest $(IMAGE):$(IMAGE_TAG)
4+
release:
5+
docker buildx build --platform linux/amd64,linux/arm64 \
6+
-t $(IMAGE):latest -t $(IMAGE):$(IMAGE_TAG) --push .
107

118
build:
129
docker build -t $(IMAGE) .
1310

1411
run:
1512
docker run -it --rm $(IMAGE) /bin/bash
1613

17-
dockerhub_push:
18-
docker push $(IMAGE):latest \
19-
&& docker push "$(IMAGE):$(IMAGE_TAG)"
20-
21-
.PHONY: release tag_image build dockerhub_push
14+
.PHONY: release build run

0 commit comments

Comments
 (0)