-
-
Save jonnylink/0bff8b47bd545d2104caffde09b74551 to your computer and use it in GitHub Desktop.
Install glibc in Alpine docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM public.ecr.aws/docker/library/alpine:3.18 | |
ARG APK_GLIBC_VERSION=2.29-r0 | |
ARG APK_GLIBC_FILE="glibc-${APK_GLIBC_VERSION}.apk" | |
ARG APK_GLIBC_BIN_FILE="glibc-bin-${APK_GLIBC_VERSION}.apk" | |
ARG APK_GLIBC_BASE_URL="https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${APK_GLIBC_VERSION}" | |
RUN apk --no-cache add \ | |
wget \ | |
ca-certificates \ | |
libstdc++ \ | |
# Get and install glibc for alpine | |
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \ | |
&& wget "${APK_GLIBC_BASE_URL}/${APK_GLIBC_FILE}" \ | |
&& apk --force-overwrite --no-cache add "${APK_GLIBC_FILE}" \ | |
&& wget "${APK_GLIBC_BASE_URL}/${APK_GLIBC_BIN_FILE}" \ | |
&& apk --no-cache add "${APK_GLIBC_BIN_FILE}" \ | |
&& rm glibc-* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment