From 9ae6cf29da072b7fc46b82e7efc5db963559b3c6 Mon Sep 17 00:00:00 2001 From: Joscelind Date: Wed, 10 Jun 2026 21:30:32 +0700 Subject: [PATCH] Add Dockerfile for PHP deployment --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0b3645e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM php:8.3-apache + +# Install mysqli and PDO MySQL extensions +RUN docker-php-ext-install mysqli pdo pdo_mysql + +# Copy the 02/ folder contents as the web root +COPY 02/ /var/www/html/ + +# Set proper permissions +RUN chown -R www-data:www-data /var/www/html \ + && chmod -R 755 /var/www/html + +EXPOSE 80