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

This commit is contained in:
Simon Podlipsky 2024-04-03 14:21:27 +02:00 committed by GitHub
parent e08b5bd456
commit 708ee9f9ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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