Erster Durchstich mit updates
This commit is contained in:
parent
d3fd60b548
commit
3331f08091
60 changed files with 693 additions and 195 deletions
16
tools/Dockerfile
Normal file
16
tools/Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue