File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ WORKDIR /src
66COPY . .
77ARG TARGETOS
88ARG TARGETARCH
9- RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -o xray -trimpath -ldflags "-s -w -buildid=" ./main
9+ RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -gcflags= "all=-l=4" - ldflags "-s -w -buildid=" ./main
1010
1111# Download geodat into a staging directory
1212ADD https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geoip.dat /tmp/geodat/geoip.dat
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ WORKDIR /src
66COPY . .
77ARG TARGETOS
88ARG TARGETARCH
9- RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -o xray -trimpath -ldflags "-s -w -buildid=" ./main
9+ RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -gcflags="all=-l=4" - ldflags "-s -w -buildid=" ./main
1010
1111# Download geodat into a staging directory
1212ADD https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geoip.dat /tmp/geodat/geoip.dat
You can’t perform that action at this time.
0 commit comments