diff --git a/Dockerfile.10 b/Dockerfile.10 index 3a79189..6da52bf 100644 --- a/Dockerfile.10 +++ b/Dockerfile.10 @@ -55,7 +55,7 @@ ARG PHP_SERVER ARG SHELL_OPTS ARG DEBIAN_FRONTEND -ARG PACK_LIST="bash-completion git curl wget sudo unzip tini xz-utils iproute2 pinentry-curses bsd-mailx procps net-tools bsd-mailx postfix python3-icu python3-pip certbot jq " +ARG PACK_LIST="bash-completion git curl wget sudo unzip tini xz-utils iproute2 pinentry-curses bsd-mailx procps net-tools bsd-mailx postfix python3-icu python3-pip certbot ca-certificates jq " ENV ENV=~/.profile ENV SHELL="/bin/sh" @@ -75,8 +75,11 @@ RUN set -e; \ echo "Setting up prerequisites"; \ echo "$LANG UTF-8" >"/etc/locale.gen"; \ echo 'export DEBIAN_FRONTEND="'${DEBIAN_FRONTEND}'"' >"/etc/profile.d/apt.sh" && chmod 755 "/etc/profile.d/apt.sh"; \ - echo "deb http://archive.debian.org/debian buster main" > /etc/apt/sources.list; \ - echo "deb http://archive.debian.org/debian-security buster/updates main" >> /etc/apt/sources.list; \ + rm -f /etc/apt/sources.list.d/*.sources 2>/dev/null || true; \ + echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99archive-release; \ + printf '%s\n' \ + "deb http://archive.debian.org/debian buster main contrib non-free" \ + "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" > /etc/apt/sources.list; \ apt update && apt install -yy bash locales apt-utils; \ locale-gen $LANG && update-locale LANG=$LANG; \ update-alternatives --install /bin/sh sh /bin/bash 1 diff --git a/Dockerfile.11 b/Dockerfile.11 index a4c11ae..fc38d70 100644 --- a/Dockerfile.11 +++ b/Dockerfile.11 @@ -55,7 +55,7 @@ ARG PHP_SERVER ARG SHELL_OPTS ARG DEBIAN_FRONTEND -ARG PACK_LIST="bash-completion git curl wget sudo unzip tini xz-utils iproute2 pinentry-curses bsd-mailx procps net-tools bsd-mailx postfix python3-icu python3-pip certbot jq " +ARG PACK_LIST="bash-completion git curl wget sudo unzip tini xz-utils iproute2 pinentry-curses bsd-mailx procps net-tools bsd-mailx postfix python3-icu python3-pip certbot ca-certificates jq " ENV ENV=~/.profile ENV SHELL="/bin/sh" @@ -75,6 +75,11 @@ RUN set -e; \ echo "Setting up prerequisites"; \ echo "$LANG UTF-8" >"/etc/locale.gen"; \ echo 'export DEBIAN_FRONTEND="'${DEBIAN_FRONTEND}'"' >"/etc/profile.d/apt.sh" && chmod 755 "/etc/profile.d/apt.sh"; \ + rm -f /etc/apt/sources.list.d/*.sources 2>/dev/null || true; \ + printf '%s\n' \ + "deb http://deb.debian.org/debian bullseye main contrib non-free" \ + "deb http://deb.debian.org/debian bullseye-updates main contrib non-free" \ + "deb http://security.debian.org/debian-security bullseye-security main contrib non-free" > /etc/apt/sources.list; \ apt update && apt install -yy bash locales apt-utils python3-tz; \ dpkg-reconfigure --frontend=noninteractive locales;update-locale LANG=$LANG; \ update-alternatives --install /bin/sh sh /bin/bash 1 diff --git a/Dockerfile.12 b/Dockerfile.12 index d4c390d..5e72598 100644 --- a/Dockerfile.12 +++ b/Dockerfile.12 @@ -55,7 +55,7 @@ ARG PHP_SERVER ARG SHELL_OPTS ARG DEBIAN_FRONTEND -ARG PACK_LIST="bash-completion git curl wget sudo unzip tini xz-utils iproute2 pinentry-curses bsd-mailx procps net-tools bsd-mailx postfix python3-icu python3-pip certbot jq " +ARG PACK_LIST="bash-completion git curl wget sudo unzip tini xz-utils iproute2 pinentry-curses bsd-mailx procps net-tools bsd-mailx postfix python3-icu python3-pip certbot ca-certificates jq " ENV ENV=~/.profile ENV SHELL="/bin/sh" @@ -75,6 +75,11 @@ RUN set -e; \ echo "Setting up prerequisites"; \ echo "$LANG UTF-8" >"/etc/locale.gen"; \ echo 'export DEBIAN_FRONTEND="'${DEBIAN_FRONTEND}'"' >"/etc/profile.d/apt.sh" && chmod 755 "/etc/profile.d/apt.sh"; \ + rm -f /etc/apt/sources.list.d/*.sources 2>/dev/null || true; \ + printf '%s\n' \ + "deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware" \ + "deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware" \ + "deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware" > /etc/apt/sources.list; \ apt update && apt install -yy bash locales apt-utils; \ locale-gen $LANG && update-locale LANG=$LANG; \ update-alternatives --install /bin/sh sh /bin/bash 1 diff --git a/Dockerfile.13 b/Dockerfile.13 index 386342b..e52034c 100644 --- a/Dockerfile.13 +++ b/Dockerfile.13 @@ -55,7 +55,7 @@ ARG PHP_SERVER ARG SHELL_OPTS ARG DEBIAN_FRONTEND -ARG PACK_LIST="bash-completion git curl wget sudo unzip tini xz-utils iproute2 pinentry-curses bsd-mailx procps net-tools bsd-mailx postfix python3-icu python3-pip certbot jq " +ARG PACK_LIST="bash-completion git curl wget sudo unzip tini xz-utils iproute2 pinentry-curses bsd-mailx procps net-tools bsd-mailx postfix python3-icu python3-pip certbot ca-certificates jq " ENV ENV=~/.profile ENV SHELL="/bin/sh" @@ -75,6 +75,11 @@ RUN set -e; \ echo "Setting up prerequisites"; \ echo "$LANG UTF-8" >"/etc/locale.gen"; \ echo 'export DEBIAN_FRONTEND="'${DEBIAN_FRONTEND}'"' >"/etc/profile.d/apt.sh" && chmod 755 "/etc/profile.d/apt.sh"; \ + rm -f /etc/apt/sources.list.d/*.sources 2>/dev/null || true; \ + printf '%s\n' \ + "deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware" \ + "deb http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware" \ + "deb http://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware" > /etc/apt/sources.list; \ apt update && apt install -yy bash locales apt-utils; \ locale-gen $LANG && update-locale LANG=$LANG; \ update-alternatives --install /bin/sh sh /bin/bash 1