From 708ee9f9eea2c10c4cba5f7750fc994a183caec8 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Wed, 3 Apr 2024 14:21:27 +0200 Subject: [PATCH] Docker: Do not run apk on non-alpine distros (#83361) --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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