Skip to content

Commit

Permalink
fix: Dockerfile go buildvcs=false
Browse files Browse the repository at this point in the history
Turn off go build's VCS tagging in the Dockerfile, as it can cause
issues in certain scenarios, such as when this repo is cloned as a git
submodule.

Signed-off-by: Alexis Asseman <[email protected]>
  • Loading branch information
aasseman committed Nov 18, 2022
1 parent 3a3d746 commit f38120a
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 @@ -4,7 +4,7 @@ FROM golang:1.18-bullseye as build

WORKDIR /root/app
COPY . .
RUN go build -ldflags="-s -w" -o autoagora-indexer-service ./src
RUN go build -buildvcs=false -ldflags="-s -w" -o autoagora-indexer-service ./src

########################################################################################

Expand Down

0 comments on commit f38120a

Please sign in to comment.