This commit is contained in:
TossPig 2022-12-02 06:29:46 +08:00 committed by GitHub
parent b9324e954d
commit 0ea470e703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,9 +15,8 @@ ARG DEBIAN_FRONTEND=noninteractive
# sed -i "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list && \
# sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list && \
# sed -i "s/security.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list
RUN if [ "debian:8" = "${DOCKER_BASE_IMAGE}" ] || [ "debian:8-slim" = "${DOCKER_BASE_IMAGE}" ]; then \
echo 'APT { Get { AllowUnauthenticated "1"; }; };' | tee /etc/apt/apt.conf.d/99disable-gpg-auth ;\
fi
RUN cat /etc/os-release | grep -q 'jessie' && echo 'APT::Get::AllowUnauthenticated "true";' | tee /etc/apt/apt.conf.d/99disable-gpg-auth || true
RUN apt-get update && \
apt-get install --yes --no-install-recommends ca-certificates build-essential git libssl-dev curl cpio bspatch vim gettext bc bison flex dosfstools kmod && \
rm -rf /var/lib/apt/lists/* /tmp/* && \