diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e64ab57 --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file