Skip to content

Commit 5ef8aed

Browse files
committed
perf: Add grpcnotrace build tag to shrink binary size
1 parent 4f3202d commit 5ef8aed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.goreleaser.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ builds:
99
- CGO_ENABLED=0
1010
flags:
1111
- -trimpath
12+
tags:
13+
- grpcnotrace
1214
ldflags:
1315
- -s
1416
- -w

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY cmd/ cmd/
99
COPY internal/ internal/
1010

1111
RUN --mount=type=cache,target=/root/.cache \
12-
go build -ldflags="-w -s" -trimpath
12+
go build -ldflags="-w -s" -trimpath -tags grpcnotrace
1313

1414

1515
FROM alpine:3.21.3

0 commit comments

Comments
 (0)