diff --git a/dockerfile b/dockerfile index 9b9cd9e..ed140ea 100644 --- a/dockerfile +++ b/dockerfile @@ -23,19 +23,19 @@ LABEL \ # org.opencontainers.image.version="{git tag}" - -# This Black Magic exists as libc-bin was being a turd and returning errors when trying to install git, ssh. -# see: https://askubuntu.com/questions/1339558/cant-build-dockerfile-for-arm64-due-to-libc-bin-segmentation-fault -# see: https://github.com/dcycle/prepare-docker-buildx/blob/09057fe4879e31ee780b9e69b87f41327ca8cd8e/example/Dockerfile#L8-L10 RUN export DEBIAN_FRONTEND=noninteractive \ && apt update \ - && apt --fix-broken install \ - && apt install -y libc-bin locales-all \ - && apt update \ - && apt install --reinstall --no-install-recommends -yq \ - openssh-client \ - git || true \ - && dpkg --purge --force-all libc-bin \ + # SoF fixing dpkg ldconfig not found error + && cd /tmp \ + && apt-get download \ + libc-bin \ + && dpkg --extract ./libc-bin_*.deb /tmp/deb \ + && cp /tmp/deb/sbin/ldconfig /sbin/ \ + && rm -Rf /tmp/deb \ + && rm libc-bin_*.deb + && apt-get install --reinstall \ + libc-bin \ + # EoF fixing dpkg ldconfig not found error && apt-get install --no-install-recommends -y \ openssh-client \ git \