Skip to content

Commit

Permalink
Avoid ambiguous ARG x y syntax in Dockerfile.
Browse files Browse the repository at this point in the history
At the very least, dockerls doesn't like that syntax.
  • Loading branch information
sengi committed May 14, 2024
1 parent 47a4a54 commit f2935f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ ARG go_version=1.22
ARG go_tag_suffix=-alpine

FROM --platform=$TARGETPLATFORM ${go_registry}golang:${go_version}${go_tag_suffix} AS builder
ARG TARGETARCH TARGETOS
ARG GOARCH=$TARGETARCH GOOS=$TARGETOS
ARG TARGETARCH
ARG TARGETOS
ARG GOARCH=$TARGETARCH
ARG GOOS=$TARGETOS
ARG CGO_ENABLED=0
ARG GOFLAGS="-trimpath"
ARG go_ldflags="-s -w"
Expand Down

0 comments on commit f2935f1

Please sign in to comment.