From c142eb65403fdad7cc6f5b7c4a33f6dafd708fd3 Mon Sep 17 00:00:00 2001 From: knightofdemons <8983377+knightofdemons@users.noreply.github.com> Date: Mon, 4 Dec 2023 12:40:33 +0100 Subject: [PATCH] Create Dockerfile --- Release/Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Release/Dockerfile diff --git a/Release/Dockerfile b/Release/Dockerfile new file mode 100644 index 0000000..ff3bb7a --- /dev/null +++ b/Release/Dockerfile @@ -0,0 +1,23 @@ +# Use the official PHP image as the base image +FROM php:7.4-apache + +# Copy the application files into the container +COPY . /var/www/html + +# Set the working directory in the container +WORKDIR /var/www/html + +# Install necessary PHP extensions +RUN apt-get update && apt-get install -y \ + libicu-dev \ + libzip-dev \ + && docker-php-ext-install \ + intl \ + zip \ + && a2enmod rewrite + +# Expose port 80 +EXPOSE 80 + +# Define the entry point for the container +CMD ["apache2-foreground"] \ No newline at end of file