add Dockerfiles and update all configs for deployment

This commit is contained in:
cygouw
2026-06-11 16:17:42 +07:00
parent 5e1038180e
commit 50f64afbe7
5 changed files with 49 additions and 9 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM php:8.2-apache
RUN docker-php-ext-install mysqli pdo pdo_mysql
RUN a2enmod rewrite
COPY . /var/www/html/
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