fix(container): correct the dpkg ldconfig error
ldconffig appears to be missing from the container. these changes add it bac to the continer for use fixes #12
This commit is contained in:
committed by
a random name not depending on valid value

parent
9c6f46fce1
commit
9705f44c8a
22
dockerfile
22
dockerfile
@ -23,19 +23,19 @@ LABEL \
|
|||||||
# org.opencontainers.image.version="{git tag}"
|
# 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 \
|
RUN export DEBIAN_FRONTEND=noninteractive \
|
||||||
&& apt update \
|
&& apt update \
|
||||||
&& apt --fix-broken install \
|
# SoF fixing dpkg ldconfig not found error
|
||||||
&& apt install -y libc-bin locales-all \
|
&& cd /tmp \
|
||||||
&& apt update \
|
&& apt-get download \
|
||||||
&& apt install --reinstall --no-install-recommends -yq \
|
libc-bin \
|
||||||
openssh-client \
|
&& dpkg --extract ./libc-bin_*.deb /tmp/deb \
|
||||||
git || true \
|
&& cp /tmp/deb/sbin/ldconfig /sbin/ \
|
||||||
&& dpkg --purge --force-all libc-bin \
|
&& 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 \
|
&& apt-get install --no-install-recommends -y \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
git \
|
git \
|
||||||
|
Reference in New Issue
Block a user