docs: correct build args in multi-platform guide to include TARGETOS and TARGETARCH (#23240)

This commit is contained in:
2003Aditya
2025-11-01 23:29:15 +05:30
parent 577bf3e73a
commit 310bd6549f

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.