Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
added -buildvcs=false flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Mar 18, 2022
1 parent 712946c commit 3c5a6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG VERSION
ENV CGO_ENABLED=0
WORKDIR /go/src/github.com/basemachina/bridge
COPY . .
RUN go build -mod=readonly -o bridge -trimpath -ldflags "-w -s -X main.version=$VERSION -X main.serviceName=bridge" ./cmd/bridge
RUN go build -mod=readonly -o bridge -buildvcs=false -trimpath -ldflags "-w -s -X main.version=$VERSION -X main.serviceName=bridge" ./cmd/bridge

# runtime image
FROM alpine:3.15
Expand Down

0 comments on commit 3c5a6f8

Please sign in to comment.