Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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"]
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<html>
<head>
<title> Intellipaat </title>
<title> Intellipaat Learner Team - Learn the things by yourself</title>
</head>
<body style = "background-image:url('images/github3.jpg'); background-size: 100%">
<h2 ALIGN=CENTER>Hello world!</h2>
<h2 ALIGN=CENTER>Hello Intellipaat learners!!</h2>
</body>
</html>