Skip to content

Add multi-platform Docker builds for Linux AMD64/ARM64#1

Closed
Copilot wants to merge 6 commits intomainfrom
copilot/add-docker-image-builds
Closed

Add multi-platform Docker builds for Linux AMD64/ARM64#1
Copilot wants to merge 6 commits intomainfrom
copilot/add-docker-image-builds

Conversation

Copy link
Contributor

Copilot AI commented Oct 27, 2025

Enables Docker image builds for multiple architectures to support deployment across different hardware platforms.

Changes

  • Dockerfile: Multi-stage build with platform-aware cross-compilation

    • Uses TARGETOS and TARGETARCH build args for target platform selection
    • Static linking via CGO_ENABLED=0 for portable binaries
    • Alpine runtime for minimal image size
  • GitHub Actions: Extended workflow for multi-platform support

    • Docker images: linux/amd64, linux/arm64 via BuildX
    • Updated actions to v4, added explicit permissions
  • Documentation: Added platform support section for Linux architectures

Usage

Docker automatically selects the appropriate image for the host platform:

docker pull ghcr.io/tekig/clerk:main  # Works on AMD64 or ARM64 hosts
Original prompt

Add a Docker image build for popular Windows, Linux, and Arm64/AMD64 platforms.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits October 27, 2025 08:36
Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Docker image build for Windows and Linux platforms Add multi-platform Docker builds for Linux AMD64/ARM64 and Windows binaries Oct 27, 2025
Copilot AI requested a review from tekig October 27, 2025 08:48
@tekig
Copy link
Owner

tekig commented Oct 27, 2025

Limit Docker image builds to Linux platforms only.

Comment on lines +86 to +106
build-windows:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'

- name: Build Windows binaries
run: |
go build -o bin/hammer.exe ./cmd/hammer
go build -o bin/recorder.exe ./cmd/recorder
go build -o bin/searcher.exe ./cmd/searcher

- name: Upload Windows binaries
uses: actions/upload-artifact@v4
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Limit Docker image builds to Linux platforms only.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Limit Docker image builds to Linux platforms only.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Removed the Windows binary build job. Docker image builds are now limited to Linux platforms only (linux/amd64 and linux/arm64). Commit: a78945e

Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 27, 2025

Limit Docker image builds to Linux platforms only.

Done. Removed the Windows binary build job. Docker image builds are now limited to Linux platforms only (linux/amd64 and linux/arm64). Commit: a78945e

Copilot AI changed the title Add multi-platform Docker builds for Linux AMD64/ARM64 and Windows binaries Add multi-platform Docker builds for Linux AMD64/ARM64 Oct 27, 2025
Copilot AI requested a review from tekig October 27, 2025 15:09
@tekig tekig closed this Oct 27, 2025
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