We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a589172 + dbf03ef commit daf542dCopy full SHA for daf542d
Dockerfile
@@ -4,7 +4,8 @@ WORKDIR /goapp
4
COPY go.mod go.sum ./
5
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go mod download
6
COPY *.go ./
7
-ARG TARGETOS TARGETARCH
+ARG TARGETOS
8
+ARG TARGETARCH
9
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o ngcplogs .
10
11
FROM alpine:3.19.1
0 commit comments