Skip to content

fix(docker): Remove --platform=${BUILDPLATFORM} from Dockerfile#1004

Merged
NickOvt merged 1 commit intozone-eu:masterfrom
sesamestr33t:dockerfile-fix
Mar 4, 2026
Merged

fix(docker): Remove --platform=${BUILDPLATFORM} from Dockerfile#1004
NickOvt merged 1 commit intozone-eu:masterfrom
sesamestr33t:dockerfile-fix

Conversation

@martian-str33t
Copy link
Copy Markdown
Contributor

Summary

  • Removes --platform=${BUILDPLATFORM} from the Dockerfile FROM instruction, which causes issues when building for amd64 on ARM hosts (e.g. Apple Silicon). Without this flag, Docker correctly builds for the target platform.

BUILDPLATFORM forces the host architecture (ARM on Mac), causing
exec format error on amd64 clusters. FROM without --platform defaults
to TARGETPLATFORM, which respects docker buildx --platform.
@NickOvt
Copy link
Copy Markdown
Contributor

NickOvt commented Feb 27, 2026

Hello!

What is the exact issue with this?
BUILDPLATFORM was added exactly for so that then building for, for example, amd on an arm system you pull
node arm, which would run the commands faster, but still build for amd at the end.

Cheers

EDIT: I was incorrect, the PR fixes the buildx issue, mergeing. Thank you!

@NickOvt NickOvt merged commit ad1c444 into zone-eu:master Mar 4, 2026
3 checks passed
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