First migrated version

This commit is contained in:
torsten 2026-10-03 15:56:22 +02:00
parent 12b2cd91f8
commit acb7618086
6 changed files with 268 additions and 2 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM php:8.2-apache
# Install PDO MySQL extension
RUN docker-php-ext-install pdo pdo_mysql
# Enable Apache mod_rewrite for routing
RUN a2enmod rewrite
# Set document root to public folder
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
# Update Apache config to use the new document root
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
WORKDIR /var/www/html