From aed531a8a97fbc41b2e37f37ca94f4a02228139e Mon Sep 17 00:00:00 2001 From: khs1994 Date: Mon, 3 Jun 2019 22:30:35 +0800 Subject: [PATCH] Fix Dockerfile format Signed-off-by: Kang HuaiShuai --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 57e31498..f9e24bf5 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,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. List of build arguments like `BUILDPLATFORM` and `TARGETPLATFORM` are 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