File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 77 - -s
88 - -w
99 - -X main.version={{ .Version }}
10+ - -buildid=
11+ flags :
12+ - -trimpath
1013 targets :
1114 - linux_amd64
1215 - linux_arm64
Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ RUN go mod download
1111
1212COPY . .
1313
14- RUN go build -o bin/bproxy -ldflags "-s -w" github.com/flashbots/bproxy/cmd
14+ RUN SOURCE_DATE_EPOCH=0 CGO_ENABLED=0 go build \
15+ -trimpath \
16+ -ldflags "-s -w -buildid=" \
17+ -o bin/bproxy \
18+ github.com/flashbots/bproxy/cmd
1519
1620# stage: run -----------------------------------------------------------
1721
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ VERSION := $(VERSION:v%=%)
33
44.PHONY : build
55build :
6- @CGO_ENABLED=0 go build \
7- -ldflags " -X main.version=${VERSION} " \
6+ @CGO_ENABLED=0 SOURCE_DATE_EPOCH=0 go build \
7+ -trimpath \
8+ -ldflags " -s -w -X main.version=${VERSION} -buildid=" \
89 -o ./bin/bproxy \
910 github.com/flashbots/bproxy/cmd
1011
You can’t perform that action at this time.
0 commit comments