-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] understand of "--platform=$BUILDPLATFORM" in dockerfile #1241
Comments
Yes. In case you want to run binaries for your main architecture even if the user has requested an image for another architecture as a result of the build.
Note that specifying Eg. if you have a dockerfile:
building this dockerfile will always result in |
Thanks for the clarification! @tonistiigi |
Hi @tonistiigi @AkihiroSuda, do you know if it's possible to override the platform when using the Buildkit SDK as we do in OpenFaaS Cloud? https://github.com/openfaas/openfaas-cloud/blob/master/of-builder/main.go#L194 |
I am trying to understand the purpose of specify below instruction in dockerfile,
I saw some explanation from here moby/moby#32487
Is there any case the build stage is not fixed to work architecture without specifying the
???
Is it possible for us to build like below irrespective of QEMU support on the build machine?
and for what's use-case?
Many thanks!
The text was updated successfully, but these errors were encountered: