povertymap: add Dockerfile and update config

This commit is contained in:
cygouw
2026-06-11 16:03:54 +07:00
parent 580765a527
commit 5e1038180e
2 changed files with 24 additions and 4 deletions
+20
View File
@@ -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