mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Merge pull request #23639 from 2003Aditya/fix-multi-platform-docs
docs: correct build args in multi-platform guide to include TARGETOS …
This commit is contained in:
@@ -411,9 +411,7 @@ Steps:
|
||||
platforms.
|
||||
|
||||
3. To add cross-compilation support, update the Dockerfile to use the
|
||||
pre-defined `BUILDPLATFORM` and `TARGETPLATFORM` build arguments. These
|
||||
arguments are automatically available in the Dockerfile when you use the
|
||||
`--platform` flag with `docker build`.
|
||||
pre-defined `BUILDPLATFORM`, `TARGETOS` and `TARGETARCH` build arguments.
|
||||
|
||||
- Pin the `golang` image to the platform of the builder using the
|
||||
`--platform=$BUILDPLATFORM` option.
|
||||
|
||||
Reference in New Issue
Block a user