From 4be3d95bd1c6f23770ea2613a40697791be0768c Mon Sep 17 00:00:00 2001 From: Robbert Klarenbeek Date: Tue, 17 Sep 2019 01:14:50 +0200 Subject: [PATCH] Fix FROM command --- buildx/working-with-buildx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildx/working-with-buildx.md b/buildx/working-with-buildx.md index 3a4810a410..b0b5c4c0c3 100644 --- a/buildx/working-with-buildx.md +++ b/buildx/working-with-buildx.md @@ -82,7 +82,7 @@ $ docker buildx build --platform linux/amd64,linux/arm64 . Finally, depending on your project, the language that you use may have good support for cross-compilation. In that case, multi-stage builds in Dockerfiles can be effectively used to build binaries for the platform specified with `--platform` using the native architecture of the build node. A list of build arguments like `BUILDPLATFORM` and `TARGETPLATFORM` is available automatically inside your Dockerfile and can be leveraged by the processes running as part of your build. ``` -FROM --platform $BUILDPLATFORM golang:alpine AS build +FROM --platform=$BUILDPLATFORM golang:alpine AS build ARG TARGETPLATFORM ARG BUILDPLATFORM RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log