You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build-aux/docker/images/Dockerfile.traffic
+1-1
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ ARG TARGETARCH
32
32
RUN \
33
33
--mount=type=cache,target=/root/.cache/go-build \
34
34
--mount=type=cache,target=/go/pkg/mod \
35
-
GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /usr/local/bin/ -trimpath -ldflags=-X=$(go list ./pkg/version).Version=$(cat version.txt) ./cmd/traffic/...
35
+
GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /usr/local/bin/ --buildmode pie -trimpath -ldflags=-X=$(go list ./pkg/version).Version=$(cat version.txt) ./cmd/traffic/...
36
36
37
37
# setcap is necessary because the process will listen to privileged ports
38
38
RUN setcap 'cap_net_bind_service+ep' /usr/local/bin/traffic
0 commit comments