Skip to content

Build multi-arch Docker image (add linux/arm64)#17

Merged
andiwand merged 1 commit into
mainfrom
docker-arm64
Jul 5, 2026
Merged

Build multi-arch Docker image (add linux/arm64)#17
andiwand merged 1 commit into
mainfrom
docker-arm64

Conversation

@andiwand

@andiwand andiwand commented Jul 5, 2026

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

What

The published Docker image was amd64-only. This adds a linux/arm64 build alongside amd64.

Changes

  • Dockerfile: now arch-aware via the Buildx-provided TARGETARCH.
    • Firefox and geckodriver download per-arch (linux-x86_64/linux64 for amd64, linux-aarch64 for arm64).
    • Google Chrome has no ARM64 Linux build, so it is installed on amd64 only. On arm64 the step is skipped with a note. This is fine because the tool defaults to --driver firefox; --driver chrome is simply unavailable on arm64.
  • .github/workflows/docker.yaml: sets up QEMU and passes platforms: linux/amd64,linux/arm64 to build-push-action, producing a multi-arch manifest.

Verification

Built the arm64 image locally and ran it:

  • Mozilla Firefox 138.0.4
  • geckodriver 0.36.0
  • google-chrome absent (expected on arm64) ✓

Make the Dockerfile arch-aware via TARGETARCH: Firefox and geckodriver
now use per-arch downloads (x86_64/linux64 for amd64, aarch64 for arm64).
Google Chrome ships no ARM64 Linux build, so it is installed on amd64
only; arm64 relies on Firefox, which is the tool's default driver.

The docker workflow sets up QEMU and builds/pushes both linux/amd64 and
linux/arm64.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KPXpci41uTJi9PS58Xbb2y
@andiwand andiwand merged commit 3ec1ce3 into main Jul 5, 2026
6 checks passed
@andiwand andiwand deleted the docker-arm64 branch July 5, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant