From c8b8211e3a29fe9495b028b4c53ac715790564d1 Mon Sep 17 00:00:00 2001 From: Pieter Hollander Date: Sat, 10 Aug 2024 09:54:57 +0200 Subject: [PATCH] Add documentation for ARG TARGET* --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index f5c5bfa..e3370f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ COPY . . # Build the application for the specified target architecture # https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/ +# Declare TARGETOS and TARGETARCH in the local scope so they can be used in the build stage. ARG TARGETOS TARGETARCH RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o opendtu-logger .