From ab638547e16eab1b7104940dac0de75132dc33e5 Mon Sep 17 00:00:00 2001 From: L4zyL4mb Date: Thu, 11 Jun 2026 17:05:27 +0700 Subject: [PATCH] Tambah Dockerfile untuk webgis tanah jalan --- SIG_Tanah_Jalan/Dockerfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 SIG_Tanah_Jalan/Dockerfile diff --git a/SIG_Tanah_Jalan/Dockerfile b/SIG_Tanah_Jalan/Dockerfile new file mode 100644 index 0000000..a509357 --- /dev/null +++ b/SIG_Tanah_Jalan/Dockerfile @@ -0,0 +1,34 @@ +FROM php:8.3-apache + +# Install ekstensi PHP yang dibutuhkan +RUN apt-get update && apt-get install -y \ + libpng-dev \ + libjpeg-dev \ + libwebp-dev \ + zip \ + unzip \ + && docker-php-ext-configure gd --with-jpeg --with-webp \ + && docker-php-ext-install mysqli gd \ + && rm -rf /var/lib/apt/lists/* + +# Aktifkan mod_rewrite Apache +RUN a2enmod rewrite + +# Set direktori kerja +WORKDIR /var/www/html + +# Copy semua file proyek +COPY . . + +# Permission +RUN chown -R www-data:www-data /var/www/html \ + && chmod -R 755 /var/www/html + +# Konfigurasi Apache agar baca .htaccess +RUN echo '\n\ + AllowOverride All\n\ + Require all granted\n\ +' > /etc/apache2/conf-available/custom.conf \ + && a2enconf custom + +EXPOSE 80