povertymap: add Dockerfile and update config
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
RUN docker-php-ext-install mysqli pdo pdo_mysql
|
||||
|
||||
RUN a2enmod rewrite
|
||||
|
||||
COPY . /var/www/html/
|
||||
|
||||
RUN mkdir -p /var/www/html/uploads \
|
||||
&& chown -R www-data:www-data /var/www/html/uploads \
|
||||
&& chmod -R 775 /var/www/html/uploads
|
||||
|
||||
RUN echo '<Directory /var/www/html>\n\
|
||||
Options Indexes FollowSymLinks\n\
|
||||
AllowOverride All\n\
|
||||
Require all granted\n\
|
||||
</Directory>' > /etc/apache2/conf-available/custom.conf \
|
||||
&& a2enconf custom
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user