30 lines
833 B
Docker
30 lines
833 B
Docker
|
|
# Basis-Image: Apache + PHP
|
|
FROM php:8.2-apache
|
|
|
|
# PHP Erweiterungen installieren (mysqli)
|
|
RUN docker-php-ext-install mysqli
|
|
|
|
# pdftk installieren
|
|
RUN apt-get update && \
|
|
apt-get install -y \
|
|
pdftk \
|
|
net-tools \
|
|
msmtp \
|
|
msmtp-mta \
|
|
geoip-bin && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Apache Mod Rewrite aktivieren (optional)
|
|
RUN a2enmod rewrite
|
|
|
|
# NEU: AllowOverride All aktivieren, damit .htaccess funktioniert
|
|
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
|
|
|
|
RUN echo "sendmail_path=/usr/bin/msmtp -t -i -f bruno.eckhardt07@gmail.com" > /usr/local/etc/php/conf.d/sendmail.ini
|
|
|
|
COPY MAIL/msmtprc /etc/msmtprc
|
|
|
|
RUN chmod 644 /etc/msmtprc
|
|
|
|
RUN touch /var/log/msmtp.log && chmod 666 /var/log/msmtp.log |