From 6d9bb86f2ca0077b350e75e16abd8f6cb08d7387 Mon Sep 17 00:00:00 2001 From: maxi322 Date: Fri, 27 Oct 2023 15:25:26 +0200 Subject: [PATCH] update Debian to Bookworm --- Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index d166151..e628f05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,26 @@ -FROM debian:buster +FROM debian:bookworm ARG DEBIAN_FRONTEND=noninteractive ARG OPENXPKI_NOCONFIG=1 RUN apt-get update && \ apt-get upgrade --assume-yes && \ - apt-get install --assume-yes gpg libdbd-mysql-perl libapache2-mod-fcgid apache2 wget locales less gettext + apt-get install --assume-yes gpg libdbd-mysql-perl libapache2-mod-fcgid apache2 wget locales less gettext curl RUN rm /etc/locale.gen && \ (for lang in "en_US" "de_DE"; do echo "$lang.UTF-8 UTF-8" >> /etc/locale.gen; done) && \ dpkg-reconfigure --frontend=noninteractive locales -RUN wget https://packages.openxpki.org/v3/debian/openxpki.list -O /etc/apt/sources.list.d/openxpki.list -RUN wget https://packages.openxpki.org/v3/debian/Release.key -O - | apt-key add - -RUN apt-get update && apt-get install --assume-yes libopenxpki-perl openxpki-i18n openxpki-cgi-session-driver -RUN apt-get clean +RUN echo 'Types: deb\nURIs: https://packages.openxpki.org/v3/bookworm/\nSuites: bookworm\nComponents: release\nSigned-By: /etc/apt/keyrings/openxpki.pgp' > /etc/apt/sources.list.d/openxpki.sources +RUN curl -fsSL https://packages.openxpki.org/v3/debian/Release.key | gpg --dearmor -o /etc/apt/keyrings/openxpki.pgp +RUN chmod a+r /etc/apt/keyrings/openxpki.pgp +RUN apt-get update && \ + apt-get install --assume-yes \ + libopenxpki-perl \ + openxpki-i18n \ + openxpki-cgi-session-driver \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* # Hack to run rhel/sles configs in this container RUN /usr/bin/id -u www-data | xargs /usr/sbin/useradd apache -s /usr/sbin/nologin -b /var/www -g www-data -o -u