From acef01bedbc078cdf5348772a204f373262c7817 Mon Sep 17 00:00:00 2001 From: Ahyan Z Date: Wed, 24 Jun 2026 21:39:56 +0100 Subject: [PATCH] Create Dockerfile for PHP Apache setup --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d9c2f38 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# 1. Use the official PHP image bundled with the Apache web server +FROM php:8.2-apache + +# 2. Install the MySQL Data Objects (PDO) extensions required for your DB queries +RUN docker-php-ext-install pdo pdo_mysql + +# 3. Enable Apache's mod_rewrite engine so your .htaccess file handles the API routing rules +RUN a2enmod rewrite + +# 4. Copy all your backend files from GitHub straight into the web server's public root +COPY . /var/www/html/ + +# 5. Expose port 80 so Render can route incoming mobile app traffic to Apache +EXPOSE 80