Docker: Allow to get commit sha when using root Dockerfile (#65870)

* Allow to get commit sha when using root Dockerfile
This commit is contained in:
Guilherme Caulada
2023-04-03 15:24:14 -03:00
committed by GitHub
parent 87a0c95164
commit ac09372abf

View File

@@ -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}