Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 3c5a6f8

Browse files
committed
added -buildvcs=false flag
golang/go#51723
1 parent 712946c commit 3c5a6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG VERSION
33
ENV CGO_ENABLED=0
44
WORKDIR /go/src/github.com/basemachina/bridge
55
COPY . .
6-
RUN go build -mod=readonly -o bridge -trimpath -ldflags "-w -s -X main.version=$VERSION -X main.serviceName=bridge" ./cmd/bridge
6+
RUN go build -mod=readonly -o bridge -buildvcs=false -trimpath -ldflags "-w -s -X main.version=$VERSION -X main.serviceName=bridge" ./cmd/bridge
77

88
# runtime image
99
FROM alpine:3.15

0 commit comments

Comments
 (0)