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 ee7acd2 + 3ffa4d2 commit 5ed0b22Copy full SHA for 5ed0b22
Dockerfile
@@ -95,11 +95,13 @@ ARG GO_DEBUG_GCFLAGS
95
ARG GO_GCFLAGS
96
ARG GO_BUILD_FLAGS
97
ARG GO_LDFLAGS
98
+ARG TARGETOS
99
+ARG TARGETARCH
100
ARG TARGETPLATFORM
101
102
RUN --mount=type=bind,target=.,rw \
103
--mount=type=cache,target=/root/.cache/go-build,id=shim-build-$TARGETPLATFORM \
- go build ${GO_DEBUG_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o /build/containerd-shim-nerdbox-v1 ${GO_LDFLAGS} -tags 'no_grpc' ./cmd/containerd-shim-nerdbox-v1
104
+ GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build ${GO_DEBUG_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o /build/containerd-shim-nerdbox-v1 ${GO_LDFLAGS} -tags 'no_grpc' ./cmd/containerd-shim-nerdbox-v1
105
106
FROM base AS vminit-build
107
0 commit comments