Build image.

This commit is contained in:
2024-05-03 13:54:41 +02:00
parent a7a5955723
commit cc8e789578
2 changed files with 58 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
#Use prebuilt image
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 mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN chown -R www-data:www-data /var/www/html
VOLUME /var/www/html