From feb1b2c5d02e9285374bb9222fd31b1f7f3c4d71 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 15 Aug 2017 22:15:03 +0100 Subject: [PATCH] Fix double slash prefix & use correct ldconfig --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9d90f5..8a2f3e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,8 +39,8 @@ RUN curl -fL https://ftp.gnu.org/gnu/glibc/glibc-${GLIBC_VER}.tar.xz \ \ exec >/dev/null && \ ../configure \ - --prefix=/ \ - --libdir="/lib" \ + --prefix= \ + --libdir=/lib \ --libexecdir=/lib \ --enable-add-ons \ --enable-obsolete-rpc \ @@ -67,9 +67,7 @@ RUN apt-get install -y file && \ cp -d out/bin/ldd "${PREFIX}/bin" && \ cp -d out/sbin/ldconfig "${PREFIX}/sbin" && \ \ - echo /usr/lib > "${PREFIX}/etc/ld.so.conf" && \ - ldconfig -r "${PREFIX}" && \ - ldconfig -r "${PREFIX}" -p + echo /usr/lib > "${PREFIX}/etc/ld.so.conf" WORKDIR /tmp/busybox @@ -101,5 +99,7 @@ WORKDIR / COPY --from=builder /output/ / RUN mkdir -p /tmp && \ chmod 1777 /tmp +RUN ldconfig && \ + ldconfig -p CMD ["/bin/sh"]