addet dockerfile

This commit is contained in:
pika 2024-06-20 21:45:07 +02:00
parent 7dc90e7999
commit fa0a7f79a4
21 changed files with 1750 additions and 3 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
# Use the official PHP image with Apache
FROM php:8.1-apache
# Install necessary PHP extensions
RUN docker-php-ext-install pdo pdo_mysql
# Enable Apache mod_rewrite
RUN a2enmod rewrite
# Set the working directory
WORKDIR /var/www/html
# Set permissions
RUN chown -R www-data:www-data /var/www/html
# Start Apache in the foreground
CMD ["apache2-foreground"]