Skip to content

Commit 564ac8e

Browse files
committed
Workaround breaking glibc installation due to nsswitch.conf conflict: https://github.com/sgerrand/alpine-pkg-glibc/issues/185
1 parent 2b8bf62 commit 564ac8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ RUN ALPINE_GLIBC_BASE_URL="https://github.com/sgerrand/alpine-pkg-glibc/releases
2323
"$ALPINE_GLIBC_BASE_URL/$ALPINE_GLIBC_PACKAGE_VERSION/$ALPINE_GLIBC_BASE_PACKAGE_FILENAME" \
2424
"$ALPINE_GLIBC_BASE_URL/$ALPINE_GLIBC_PACKAGE_VERSION/$ALPINE_GLIBC_BIN_PACKAGE_FILENAME" \
2525
"$ALPINE_GLIBC_BASE_URL/$ALPINE_GLIBC_PACKAGE_VERSION/$ALPINE_GLIBC_I18N_PACKAGE_FILENAME" && \
26-
apk add --no-cache \
26+
mv /etc/nsswitch.conf /etc/nsswitch.conf.bak && \
27+
apk add --no-cache --force-overwrite \
2728
"$ALPINE_GLIBC_BASE_PACKAGE_FILENAME" \
2829
"$ALPINE_GLIBC_BIN_PACKAGE_FILENAME" \
2930
"$ALPINE_GLIBC_I18N_PACKAGE_FILENAME" && \
3031
\
32+
mv /etc/nsswitch.conf.bak /etc/nsswitch.conf && \
3133
rm "/etc/apk/keys/sgerrand.rsa.pub" && \
3234
(/usr/glibc-compat/bin/localedef --force --inputfile POSIX --charmap UTF-8 "$LANG" || true) && \
3335
echo "export LANG=$LANG" > /etc/profile.d/locale.sh && \

0 commit comments

Comments
 (0)