From f38120a9a40c199826fa13a2c6b7d92763cb5db9 Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Fri, 18 Nov 2022 14:49:19 -0800 Subject: [PATCH] fix: Dockerfile go buildvcs=false 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 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b748a05..91456f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ########################################################################################