From 44c6cf0f20e8d78eb977f9f7dc6cba0905fdd9a3 Mon Sep 17 00:00:00 2001 From: Arnab123devops Date: Wed, 21 Aug 2024 14:49:42 +0000 Subject: [PATCH] adding dockerfile --- website/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 website/Dockerfile diff --git a/website/Dockerfile b/website/Dockerfile new file mode 100644 index 00000000..26a17a81 --- /dev/null +++ b/website/Dockerfile @@ -0,0 +1,17 @@ +# Use the official PHP image with Apache +FROM php:8.1-apache + +# Install any necessary PHP extensions +RUN docker-php-ext-install mysqli pdo pdo_mysql + +# Copy the current directory contents into the container at /var/www/html +COPY . /var/www/html/ + +# Set the working directory +WORKDIR /var/www/html/ + +# Ensure that the Apache server runs in the foreground +CMD ["apache2-foreground"] + +# Expose port 80 to the host +EXPOSE 80