Last active
October 23, 2016 01:23
-
-
Save gnilchee/c21c3e5bf1404c1c01c37914bd90f05f to your computer and use it in GitHub Desktop.
Modifying Alpine image to use glibc.
This file contains hidden or 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 alpine:latest | |
RUN ALPINE_GLIBC_VERSION="latest" && \ | |
ALPINE_GLIBC_REPO="sgerrand" && \ | |
ALPINE_GLIBC_PROJ="alpine-pkg-glibc" && \ | |
apk add --update -t deps ca-certificates wget curl && \ | |
cd /tmp && \ | |
wget $(curl -s https://api.github.com/repos/$ALPINE_GLIBC_REPO/$ALPINE_GLIBC_PROJ/releases/$ALPINE_GLIBC_VERSION | grep 'browser_' | egrep 'glibc-.*.apk' | cut -d\" -f4) && \ | |
apk add --allow-untrusted glibc-*.apk && \ | |
/usr/glibc-compat/bin/localedef --force --inputfile POSIX --charmap UTF-8 C.UTF-8 || true && \ | |
echo "export LANG=C.UTF-8" > /etc/profile.d/locale.sh && \ | |
apk del --purge deps glibc-i18n curl && \ | |
apk add --update ca-certificates wget && \ | |
rm -rf /tmp/* /var/cache/apk/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment