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:
David Karlsson
2025-11-03 09:42:32 +01:00
committed by GitHub

View File

@@ -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.