diff --git a/Dockerfile b/Dockerfile index 25bf8d99..0edfe60c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ COPY main.go . COPY pkg ./pkg COPY internal ./internal -RUN CGO_ENABLED=1 go build -a -ldflags '-X main.vendorVersion='${REV}'' -o /bin/linode-blockstorage-csi-driver /linode +RUN CGO_ENABLED=1 go build -a -ldflags '-w -s -X main.vendorVersion="${REV}"' -o /bin/linode-blockstorage-csi-driver /linode FROM alpine:3.20.3 LABEL maintainers="Linode"