From 36a8e795d9ccd33e9707370f2cf205567dd911c3 Mon Sep 17 00:00:00 2001 From: mezned Date: Sun, 10 Nov 2024 18:13:18 +0100 Subject: [PATCH] update --- promtail/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/promtail/Dockerfile b/promtail/Dockerfile index 5bf779d..dd587c8 100644 --- a/promtail/Dockerfile +++ b/promtail/Dockerfile @@ -39,9 +39,13 @@ RUN case "${BUILD_ARCH}" in \ chmod +x /etc/cont-init.d/promtail_setup.sh; \ chmod +x /etc/services.d/promtail/*; -# Install necessary packages and glibc compatibility layer +# Install necessary packages RUN apk add --no-cache curl tar unzip && \ + # Remove nsswitch.conf to avoid conflicts with glibc + rm -f /etc/nsswitch.conf && \ + # Add the public key for sgerrand glibc packages curl -Lo /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \ + # Download and install glibc curl -Lo glibc.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r0/glibc-2.35-r0.apk && \ apk add glibc.apk && \ rm glibc.apk