dockerfile
This commit is contained in:
+15
@@ -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
|
||||
Reference in New Issue
Block a user