Docker: Do not run apk on non-alpine distros (#83361)

pull/85529/head
Simon Podlipsky 1 year ago committed by GitHub
parent e08b5bd456
commit 708ee9f9ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      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

Loading…
Cancel
Save