addet dockerfile
This commit is contained in:
parent
7dc90e7999
commit
fa0a7f79a4
21 changed files with 1750 additions and 3 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue