Some more changes for Docker

This commit is contained in:
Fabio Herzig
2026-07-25 22:08:44 +02:00
parent 99a5863f56
commit 36c4ffcced
8 changed files with 1790 additions and 6 deletions
+5 -2
View File
@@ -5,5 +5,8 @@ RUN a2enmod rewrite
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
# The php:apache image handles the "start" command automatically,
# so we don't need to add anything else here.
# Set Apache DocumentRoot to /var/wkvs/www
ENV APACHE_DOCUMENT_ROOT /var/wkvs/www
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf \
&& sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf