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.
1 parent 1c55e6a commit 4077f4bCopy full SHA for 4077f4b
Dockerfile
@@ -1,4 +1,4 @@
1
-FROM --platform=$BUILDPLATFORM golang:1.22-alpine as build
+FROM --platform=$BUILDPLATFORM golang:1.22-alpine AS build
2
WORKDIR /src
3
ARG TARGETOS TARGETARCH
4
RUN --mount=target=. --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -o /out/backend -ldflags "-s -w"
0 commit comments