From 4b4a8d163f587b5ab310d75cfbb16710f38720c1 Mon Sep 17 00:00:00 2001 From: techcow2 <108380065+techcow2@users.noreply.github.com> Date: Sat, 17 Aug 2024 13:31:51 -0400 Subject: [PATCH] Create Dockerfile --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ee3e8e7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# Use an official PHP runtime as a parent image +FROM php:8.1-apache + +# Install required packages and enable PHP extensions +RUN apt-get update && apt-get install -y \ + libpng-dev \ + && docker-php-ext-install gd + +# Enable Apache mod_rewrite +RUN a2enmod rewrite + +# Copy your application files into the container +COPY ./ /var/www/html/ + +# Set the correct permissions +RUN chown -R www-data:www-data /var/www/html/ + +# Expose port 80 +EXPOSE 80