Add Dockerfile

This commit is contained in:
2026-06-09 06:16:51 +00:00
parent d9fdc6be48
commit 43cdb2d421
+14
View File
@@ -0,0 +1,14 @@
# Gunakan image resmi PHP dengan Apache
FROM php:8.2-apache
# Install ekstensi PDO MySQL agar PHP bisa ngobrol dengan database
RUN docker-php-ext-install pdo pdo_mysql
# Salin semua file web Anda ke dalam server container
COPY . /var/www/html/
# Atur perizinan folder
RUN chown -R www-data:www-data /var/www/html
# Ekspos port default web (Apache)
EXPOSE 80