From ac09372abfef66ca6cc598f243db6134adce2b5a Mon Sep 17 00:00:00 2001 From: Guilherme Caulada Date: Mon, 3 Apr 2023 15:24:14 -0300 Subject: [PATCH] Docker: Allow to get commit sha when using root Dockerfile (#65870) * Allow to get commit sha when using root Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 56c5a65e11c..9b6fbb2a441 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,7 @@ ARG BINGO="true" # Install build dependencies RUN if grep -i -q alpine /etc/issue; then \ - apk add --no-cache gcc g++ make; \ + apk add --no-cache gcc g++ make git; \ fi WORKDIR /tmp/grafana @@ -62,6 +62,7 @@ COPY pkg pkg COPY scripts scripts COPY conf conf COPY .github .github +COPY .git .git RUN make build-go GO_BUILD_TAGS=${GO_BUILD_TAGS} WIRE_TAGS=${WIRE_TAGS}