Docker Update

This commit is contained in:
Trebleif
2026-06-11 15:59:41 +07:00
parent 7773461914
commit 3bc4a2da08
3 changed files with 51 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM php:8.2-apache
# Menginstall ekstensi pdo_mysql agar PHP bisa terhubung ke MySQL/MariaDB
RUN docker-php-ext-install pdo pdo_mysql
# Mengaktifkan mod_rewrite pada Apache (opsional, tapi sering digunakan di PHP)
RUN a2enmod rewrite
# Menyalin seluruh source code aplikasi ke direktori web server di dalam container
COPY . /var/www/html/
# Mengatur hak akses file agar web server bisa mengaksesnya
RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html