From 746c6a327303722ea1c6bafba4dbff2556f1d680 Mon Sep 17 00:00:00 2001 From: Tanya Chaudhary <49437326+tanyabitaan97@users.noreply.github.com> Date: Fri, 31 Oct 2025 15:05:15 +0530 Subject: [PATCH 1/6] Create Dockerfile --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..555fa3167 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM hshar/webapp +WORKDIR /var/www/html +COPY . /var/www/html +EXPOSE 80 From b41f6bcf5141ef5bed821eebade0a8bee963afab Mon Sep 17 00:00:00 2001 From: Tanya Chaudhary <49437326+tanyabitaan97@users.noreply.github.com> Date: Fri, 31 Oct 2025 15:53:54 +0530 Subject: [PATCH 2/6] Update Dockerfile --- Dockerfile | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 555fa3167..dc217aa85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,25 @@ -FROM hshar/webapp -WORKDIR /var/www/html -COPY . /var/www/html +# Use an official Apache base image +FROM ubuntu:20.04 + +# Prevent interactive prompts during package installation +ENV DEBIAN_FRONTEND=noninteractive + +# Update package list and install Apache +RUN apt-get update && \ + apt-get install -y apache2 && \ + apt-get clean + +# Create web directory (default for Apache on Ubuntu) +RUN mkdir -p /var/www/html + +# Copy website files (index.html, images, etc.) into /var/www/html +COPY . /var/www/html/ + +# Optional: suppress Apache ServerName warning +RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf + +# Expose port 80 for HTTP traffic EXPOSE 80 + +# Start Apache in the foreground (so container keeps running) +CMD ["apachectl", "-D", "FOREGROUND"] From ef13255484b20ce439c67353a895ac84a8a28cf8 Mon Sep 17 00:00:00 2001 From: Tanya Chaudhary <49437326+tanyabitaan97@users.noreply.github.com> Date: Fri, 31 Oct 2025 16:16:37 +0530 Subject: [PATCH 3/6] Update index.html --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 19c25caa0..1495c6dda 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,9 @@
-