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: azure-ip-masq-merger/Dockerfile
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ARG OS
9
9
ARG VERSION
10
10
WORKDIR /azure-ip-masq-merger
11
11
COPY ./azure-ip-masq-merger .
12
-
RUN GOOS=$OS CGO_ENABLED=0 go build -a -o /go/bin/ip-masq-merger -trimpath -ldflags "-X main.version="$VERSION"" -gcflags="-dwarflocationlists=true" .
12
+
RUN GOOS=$OS CGO_ENABLED=0 go build -a -o /go/bin/ip-masq-merger -trimpath -ldflags "-s -w""-X main.version="$VERSION"" -gcflags="-dwarflocationlists=true" .
Copy file name to clipboardExpand all lines: azure-ipam/Dockerfile
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ARG OS
14
14
ARG VERSION
15
15
WORKDIR /azure-ipam
16
16
COPY ./azure-ipam .
17
-
RUN GOOS=$OS CGO_ENABLED=0 go build -a -o /go/bin/azure-ipam -trimpath -ldflags "-X main.version="$VERSION"" -gcflags="-dwarflocationlists=true" .
17
+
RUN GOOS=$OS CGO_ENABLED=0 go build -a -o /go/bin/azure-ipam -trimpath -ldflags "-s -w""-X main.version="$VERSION"" -gcflags="-dwarflocationlists=true" .
18
18
19
19
FROM mariner-core AS compressor
20
20
ARG OS
@@ -31,7 +31,7 @@ ARG VERSION
31
31
RUN go mod download github.com/azure/azure-container-networking/dropgz@$DROPGZ_VERSION
RUN GOOS=$OS CGO_ENABLED=0 go build -a -o /go/bin/dropgz -trimpath -ldflags "-X github.com/Azure/azure-container-networking/dropgz/internal/buildinfo.Version="$VERSION"" -gcflags="-dwarflocationlists=true" main.go
34
+
RUN GOOS=$OS CGO_ENABLED=0 go build -a -o /go/bin/dropgz -trimpath -ldflags "-s -w""-X github.com/Azure/azure-container-networking/dropgz/internal/buildinfo.Version="$VERSION"" -gcflags="-dwarflocationlists=true" main.go
0 commit comments