From 9d177175d85bec43550ef580c10600422aa0db2f Mon Sep 17 00:00:00 2001 From: lars-hagen Date: Thu, 9 Jan 2020 10:37:43 +0100 Subject: [PATCH] Updated base image to preinstall certbot --- config/litespeed/1.6.4.build/Dockerfile | 12 ++++++++++++ config/litespeed/1.6.4.lh/Dockerfile | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/config/litespeed/1.6.4.build/Dockerfile b/config/litespeed/1.6.4.build/Dockerfile index 52961f7..ef3dc70 100644 --- a/config/litespeed/1.6.4.build/Dockerfile +++ b/config/litespeed/1.6.4.build/Dockerfile @@ -5,6 +5,18 @@ ARG extensions RUN apt-get install $extensions -y +#RUN apt-get install -y software-properties-common && \ +# add-apt-repository 'deb http://ftp.debian.org/debian jessie-backports main' && \ +# apt-get update && apt-get install -y python-certbot-apache -t jessie-backports + +RUN apt-get install -y software-properties-common && \ + add-apt-repository universe && \ + add-apt-repository ppa:certbot/certbot && \ + apt-get update && \ + apt-get install -y certbot python-certbot-apache + + + #RUN echo "admin:$(/usr/local/lsws/admin/fcgi-bin/admin_php* -q /usr/local/lsws/admin/misc/htpasswd.php ${WEB_ADMIN_PASSWORD})" \ # > /usr/local/lsws/admin/conf/htpasswd diff --git a/config/litespeed/1.6.4.lh/Dockerfile b/config/litespeed/1.6.4.lh/Dockerfile index 5c2344b..0fc54f8 100644 --- a/config/litespeed/1.6.4.lh/Dockerfile +++ b/config/litespeed/1.6.4.lh/Dockerfile @@ -15,6 +15,11 @@ RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli chmod +x wp-cli.phar && mv wp-cli.phar /usr/bin/wp && \ ln -s /usr/local/lsws/lsphp73/bin/php7.3 /usr/bin/php +RUN apt-get install -y software-properties-common && \ + add-apt-repository universe && \ + add-apt-repository ppa:certbot/certbot && \ + apt-get update && \ + apt-get install -y certbot python-certbot-apache RUN rm -rf /usr/local/lsws/conf ADD conf /usr/local/lsws/conf