diff --git a/docker/Dockerfile b/docker/Dockerfile index 175e587..61c0e86 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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/* && \