Skip to content

docker: add linux/arm64 to CUDA cuda12 build platforms#1

Merged
superbarne merged 2 commits intomasterfrom
copilot/add-arm64-support-to-docker
Mar 1, 2026
Merged

docker: add linux/arm64 to CUDA cuda12 build platforms#1
superbarne merged 2 commits intomasterfrom
copilot/add-arm64-support-to-docker

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 1, 2026

Make sure to read the contributing guidelines before submitting a PR

Extends the CUDA 12 Docker image build to target both linux/amd64 and linux/arm64, enabling multi-arch images for ARM64 hosts with NVIDIA GPUs (e.g., AWS Graviton + GPU, Jetson).

  • .github/workflows/docker.yml: cuda cuda12 matrix entry platforms changed from "linux/amd64" to "linux/amd64,linux/arm64"
Original prompt

The user wants to build the linux/arm64 docker image for CUDA in their forked repository codeanker/llama.cpp.
Currently, the .github/workflows/docker.yml workflow only builds linux/amd64 for the CUDA configuration.

I need to modify .github/workflows/docker.yml to add linux/arm64 to the platforms list for the CUDA matrix entry.

Original line (around line 43):

- { tag: "cuda cuda12", dockerfile: ".devops/cuda.Dockerfile", platforms: "linux/amd64", full: true, light: true, server: true, free_disk_space: true,  runs_on: "ubuntu-22.04", cuda_version: "12.4.0", ubuntu_version: "22.04" }

New line:

- { tag: "cuda cuda12", dockerfile: ".devops/cuda.Dockerfile", platforms: "linux/amd64,linux/arm64", full: true, light: true, server: true, free_disk_space: true,  runs_on: "ubuntu-22.04", cuda_version: "12.4.0", ubuntu_version: "22.04" }

This change enables the cross-platform build for ARM64. The workflow already handles dynamic repository owner naming for the push target, so no changes are needed there.

This pull request was created from Copilot chat.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Add arm64 platform support for CUDA Docker image build docker: add linux/arm64 to CUDA build platforms Mar 1, 2026
Co-authored-by: superbarne <1502820+superbarne@users.noreply.github.com>
Copilot AI changed the title docker: add linux/arm64 to CUDA build platforms docker: add linux/arm64 to CUDA cuda12 build platforms Mar 1, 2026
@superbarne superbarne marked this pull request as ready for review March 1, 2026 18:46
@superbarne superbarne merged commit 88c6d3f into master Mar 1, 2026
Copilot stopped work on behalf of superbarne due to an error March 1, 2026 18:47
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.

2 participants