Files
WKVS/config/apache/Dockerfile
T

12 lines
517 B
Docker

FROM php:8.3-apache
# Enable the rewrite module
RUN a2enmod rewrite
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
# 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