Skip to content

Commit

Permalink
Dockerfile: strip binaries to reduce size
Browse files Browse the repository at this point in the history
Signed-off-by: Sandro Jäckel <sandro.jaeckel@sap.com>
  • Loading branch information
SuperSandro2000 authored and crozzy committed Sep 22, 2022
1 parent 2af2a7f commit e689241
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 @@ -18,7 +18,7 @@ WORKDIR /build/
ADD . /build/
ARG CLAIR_VERSION=dev
RUN go build \
-trimpath -ldflags="-X main.Version=${CLAIR_VERSION}" \
-trimpath -ldflags="-s -w -X main.Version=${CLAIR_VERSION}" \
./cmd/clair
RUN go build -trimpath \
./cmd/clairctl
Expand Down

0 comments on commit e689241

Please sign in to comment.