Skip to content

Fix Docker platform mismatch warning in multi-arch builds#8929

Closed
chaptersix wants to merge 2 commits into
temporalio:mainfrom
chaptersix:claude/fix-docker-platform-warning-3JUhi
Closed

Fix Docker platform mismatch warning in multi-arch builds#8929
chaptersix wants to merge 2 commits into
temporalio:mainfrom
chaptersix:claude/fix-docker-platform-warning-3JUhi

Conversation

@chaptersix
Copy link
Copy Markdown
Contributor

@chaptersix chaptersix commented Jan 4, 2026

Add --platform=$TARGETPLATFORM to FROM instructions in both Dockerfiles
Fixes InvalidBaseImagePlatform warning during multi-arch builds where buildx was pulling linux/386 instead of the expected linux/amd64
Ensures correct platform manifest is pulled for each target architecture

Add --platform=$TARGETPLATFORM to FROM instructions to ensure the
correct platform manifest is pulled during multi-platform builds.
This fixes the "InvalidBaseImagePlatform" warning where buildx was
pulling linux/386 instead of linux/amd64.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 4, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ chaptersix
❌ claude
You have signed the CLA already but the status is still pending? Let us recheck it.

@chaptersix chaptersix marked this pull request as ready for review January 4, 2026 02:23
@chaptersix chaptersix requested review from a team as code owners January 4, 2026 02:23
Copy link
Copy Markdown
Contributor

@robholland robholland left a comment

Choose a reason for hiding this comment

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

Looks good to me. For those wondering, TARGETPLATFORM gets set automatically: https://docs.docker.com/reference/dockerfile/#automatic-platform-args-in-the-global-scope

@chaptersix chaptersix enabled auto-merge (squash) January 5, 2026 16:06
@chaptersix chaptersix disabled auto-merge January 5, 2026 16:09
@chaptersix
Copy link
Copy Markdown
Contributor Author

claude commit seems to be causing the license check to fail

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.

6 participants