Upgrade to latest debian version "bookworm".

This commit is contained in:
yohan-b 2023-11-04 21:21:41 +01:00 committed by GitHub
parent 81bca37e5f
commit 5777d7aad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,9 @@
FROM debian:stretch FROM debian:bookworm
MAINTAINER yohan <783b8c87@scimetis.net> MAINTAINER yohan <783b8c87@scimetis.net>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
ENV TZ=Europe/Paris ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list RUN echo "deb http://ftp.debian.org/debian bookworm-backports main" >> /etc/apt/sources.list
RUN apt-get update && apt-get -y install apache2 && apt-get -y install python-certbot-apache -t stretch-backports RUN apt-get update && apt-get -y install apache2 && apt-get -y install python-certbot-apache -t stretch-backports
RUN a2enmod ssl proxy proxy_http rewrite headers proxy_wstunnel RUN a2enmod ssl proxy proxy_http rewrite headers proxy_wstunnel
EXPOSE 80 EXPOSE 80
@ -11,4 +11,4 @@ EXPOSE 443
COPY apache2.conf /etc/apache2/ COPY apache2.conf /etc/apache2/
COPY other-vhosts-access-log.conf /etc/apache2/conf-available/ COPY other-vhosts-access-log.conf /etc/apache2/conf-available/
RUN rm -f /etc/apache2/sites-enabled/* RUN rm -f /etc/apache2/sites-enabled/*
ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]