diff --git a/Dockerfile b/Dockerfile index 2561a1fb130..3c4cf6b7b56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,12 +40,12 @@ ARG GO_BUILD_TAGS="oss" ARG WIRE_TAGS="oss" ARG BINGO="true" -# This is required to allow building on arm64 due to https://github.com/golang/go/issues/22040 -RUN apk add --no-cache binutils-gold - -# Install build dependencies RUN if grep -i -q alpine /etc/issue; then \ - apk add --no-cache gcc g++ make git; \ + apk add --no-cache \ + # This is required to allow building on arm64 due to https://github.com/golang/go/issues/22040 + binutils-gold \ + # Install build dependencies + gcc g++ make git; \ fi WORKDIR /tmp/grafana