Add dockerfile and update config file

This commit is contained in:
muthianura
2026-06-11 18:56:34 +07:00
parent f104007f77
commit c66457e587
9 changed files with 83 additions and 19 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM php:8.2-apache
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli \
&& apt-get update && apt-get install -y libzip-dev \
&& docker-php-ext-install zip \
&& rm -rf /var/lib/apt/lists/*
RUN a2enmod rewrite
COPY . /var/www/html/
RUN mkdir -p /var/www/html/uploads/foto_rumah \
&& chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html \
&& chmod -R 775 /var/www/html/uploads
EXPOSE 80