From 51468097fd73bef4e2e579c88eab2158b3f6a18d Mon Sep 17 00:00:00 2001 From: Peter Kopias Date: Mon, 6 May 2024 22:12:12 +0200 Subject: [PATCH] Add buildvcs=false to Dockerfile Otherwise go build fails with error (probably due to the detached HEAD revision) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 32475ff..3938dde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,6 @@ ADD . /app WORKDIR /app -RUN go build -o main . +RUN go build -buildvcs=false -o main . -CMD ["/app/main"] \ No newline at end of file +CMD ["/app/main"]