Skip to content

Commit

Permalink
chore: shrink useless data in go binary
Browse files Browse the repository at this point in the history
This save ~8Mb on image size
  • Loading branch information
guilhem committed Nov 27, 2024
1 parent 1a42848 commit c086328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c086328

Please sign in to comment.