16 lines
526 B
Docker
16 lines
526 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 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 |