From 0405eef8f81eef47e144ca1aef50436f73380417 Mon Sep 17 00:00:00 2001 From: thulasi0512 Date: Mon, 24 Feb 2025 18:17:36 +0530 Subject: [PATCH] Create Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..a9f117960 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Use Ubuntu as base image +FROM ubuntu:latest + +# Install Apache and other dependencies +RUN apt-get update && apt-get install -y apache2 git + +# Set the working directory +WORKDIR /var/www/html + +# Install the application dependencies +RUN apt-get install -y curl + +# Expose port 80 (Apache default) and 82 (for the website) +EXPOSE 80 82 + +# Start Apache in the foreground +CMD ["apachectl", "-D", "FOREGROUND"]