Add documentation for ARG TARGET*
This commit is contained in:
parent
ce336b4f85
commit
c8b8211e3a
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ COPY . .
|
||||||
|
|
||||||
# Build the application for the specified target architecture
|
# Build the application for the specified target architecture
|
||||||
# https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
|
# 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
|
ARG TARGETOS TARGETARCH
|
||||||
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o opendtu-logger .
|
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o opendtu-logger .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue