From 3087348412d97de2123c43733631ca9b364dadc1 Mon Sep 17 00:00:00 2001 From: ajcadavidm <162066210+ajcadavidm@users.noreply.github.com> Date: Sun, 3 Mar 2024 19:09:08 -0500 Subject: [PATCH] Create Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e04e3c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +# Use an official PHP runtime as a parent image +FROM php:7.4-apache + +# Set the working directory in the container +WORKDIR /var/www/html + +# Copy your PHP application code into the container +COPY . . + +# Install PHP extensions and other dependencies +RUN apt-get update && \ + apt-get install -y libpng-dev && \ + docker-php-ext-install pdo pdo_mysql gd + +# Expose the port Apache listens on EXPOSE 80 # Start Apache when the container runs +CMD ["apache2-foreground"]