This commit is contained in:
mezned 2024-11-10 18:13:18 +01:00
parent 97a0ab687c
commit 36a8e795d9

View File

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