This commit is contained in:
Arno
2024-10-26 10:16:37 +00:00
parent 6410bf5e34
commit b5e5a75d36
14 changed files with 118 additions and 79 deletions

View File

@ -13,7 +13,9 @@ RUN apk add --no-cache \
unzip \
zip \
openssl \
mariadb-client
mariadb-client \
certbot \
gettext
RUN apk add --no-cache \
apache2 \
@ -64,7 +66,14 @@ RUN chmod +x /etc/apache2/apache2.sh
COPY php.local.ini /etc/php81/conf.d/
COPY httpd.conf /etc/apache2/httpd.conf
COPY site.conf /etc/apache2/conf.d/nine/site.conf
COPY ssl.conf /etc/apache2/conf.d/ssl.conf
COPY sslself.conf /etc/apache2/conf.d/ssl.conf
COPY index.php /app/public/index.php
RUN mkdir /nine
COPY sslletsencrypt.conf /nine/ssl.conf
RUN mkdir -p /usr/local/apache2/htdocs/.well-known/acme-challenge
COPY addcertif.sh /nine/addcertif.sh
RUN chmod +x /nine/addcertif.sh
RUN echo "0 1 * * * /etc/apache2/addcertif.sh >> /var/log/addcertif.log 2>&1" >> /var/spool/cron/crontabs/root
CMD /etc/apache2/apache2.sh