dockerfile

This commit is contained in:
2026-06-11 09:02:54 +00:00
parent bd5c7c2052
commit a4c8410c55
+15
View File
@@ -0,0 +1,15 @@
FROM php:8.1-apache
RUN apt-get update && apt-get install -y \
libpng-dev libjpeg-dev libzip-dev unzip \
&& docker-php-ext-install pdo pdo_mysql gd zip \
&& a2enmod rewrite
COPY . /var/www/html/
RUN echo '<Directory /var/www/html>\n\
AllowOverride All\n\
Require all granted\n\
</Directory>' >> /etc/apache2/apache2.conf
EXPOSE 80