diff --git a/build.sh b/build.sh index dbfc8a1..025076f 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ set -e -for dist in buster_php7 bullseye_php7 bookworm_php8; do +for dist in jessie_php5 stretch_php7 buster_php7 bullseye_php7 bookworm_php8; do docker build --pull --no-cache -t gnuviech/${dist}-base ${dist} -f ${dist}/Dockerfile-base docker build -t gnuviech/${dist} ${dist} -f ${dist}/Dockerfile docker build -t gnuviech/${dist}-mysql ${dist} -f ${dist}/Dockerfile-mysql diff --git a/jessie_php5/Dockerfile-base b/jessie_php5/Dockerfile-base index 5550722..1b5de18 100644 --- a/jessie_php5/Dockerfile-base +++ b/jessie_php5/Dockerfile-base @@ -1,13 +1,18 @@ -FROM debian:jessie +FROM debian/eol:jessie LABEL maintainer="jan@dittberner.info" VOLUME /srv -RUN apt-get update \ +RUN sed -i \ + -e 's@\(^deb http://deb\..*\)$@#\1@' \ + -e 's@\(^deb http://security\..*\)$@deb http://archive.debian.org/debian-security jessie/updates main@' \ + /etc/apt/sources.list \ + && apt-get update \ && DEBIAN_FRONTEND=noninteractive \ apt-get install -y --no-install-recommends \ ca-certificates \ curl \ libnss-ldap \ + lsof \ nullmailer \ php-apc \ php-mail \ diff --git a/stretch_php7/Dockerfile-base b/stretch_php7/Dockerfile-base index 029dd8e..6a92f46 100644 --- a/stretch_php7/Dockerfile-base +++ b/stretch_php7/Dockerfile-base @@ -1,8 +1,12 @@ -FROM debian:stretch +FROM debian/eol:stretch LABEL maintainer="jan@dittberner.info" VOLUME /srv -RUN apt-get update \ +RUN sed -i \ + -e '/stretch-updates/d' \ + -e 's@deb\.@archive.@' \ + /etc/apt/sources.list \ + && apt-get update \ && DEBIAN_FRONTEND=noninteractive \ apt-get install -y --no-install-recommends \ dumb-init \