Correction of webserver directories.

This commit is contained in:
2024-05-03 14:37:53 +02:00
parent 96b770d79f
commit f626eb245d

View File

@@ -3,8 +3,8 @@ FROM cs-git.ddnss.de/docker/php-apache-8-3:latest
WORKDIR /var/www/html
COPY . .
RUN sed -ri -e 's!/var/www/!/var/www/html/public/!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
RUN sed -ri -e 's!AllowOverride None!AllowOverride All!g' /etc/apache2/apache2.conf
RUN sed -ri -e 's!/var/www/html!/var/www/html/public!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!/var/www/html/public!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"