Skip to content

Commit

Permalink
Add build tag urfave_cli_no_docs stripping about 300kb from binary
Browse files Browse the repository at this point in the history
  • Loading branch information
fopina authored and KostyaEsmukov committed Jan 3, 2025
1 parent 6d558e1 commit 7d3108f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ARG GOPROXY=direct
RUN CGO_ENABLED=0 GOOS=linux go build \
-ldflags "-s -w \
-X main.Version=${ST_VERSION:-UNKNOWN_RELEASE}" \
-tags urfave_cli_no_docs \
-a -o smtp_to_telegram


Expand Down

0 comments on commit 7d3108f

Please sign in to comment.