Skip to content

Commit d3f7e19

Browse files
authored
Update Dockerfile
Remove the `-s` flag
1 parent bb75182 commit d3f7e19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN --mount=type=cache,target=${GOCACHE} \
2525
--mount=type=bind,source=/agent,target=./agent \
2626
--mount=type=bind,source=/operator,target=./operator \
2727
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} \
28-
go build -a -o /manager -ldflags="-s -w -X github.com/pulumi/pulumi-kubernetes-operator/v2/operator/version.Version=${VERSION}" ./operator/cmd/main.go
28+
go build -a -o /manager -ldflags="-w -X github.com/pulumi/pulumi-kubernetes-operator/v2/operator/version.Version=${VERSION}" ./operator/cmd/main.go
2929

3030
# Build the agent.
3131
FROM --platform=${BUILDPLATFORM} base AS agent-builder
@@ -37,7 +37,7 @@ RUN --mount=type=cache,target=${GOCACHE} \
3737
--mount=type=cache,target=${GOMODCACHE} \
3838
--mount=type=bind,source=/agent,target=./agent \
3939
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} \
40-
go build -a -o /agent -ldflags "-s -w -X github.com/pulumi/pulumi-kubernetes-operator/v2/agent/version.Version=${VERSION}" ./agent/main.go
40+
go build -a -o /agent -ldflags "-w -X github.com/pulumi/pulumi-kubernetes-operator/v2/agent/version.Version=${VERSION}" ./agent/main.go
4141

4242
# Use distroless as minimal base image to package the manager binary
4343
# Refer to https://github.com/GoogleContainerTools/distroless for more details

0 commit comments

Comments
 (0)