# Use the official Nginx image from Docker Hub
FROM nginx:alpine

# Set the working directory to /usr/share/nginx/html
# This is where Nginx expects to find HTML files
WORKDIR /usr/share/nginx/html

# Copy all files in the current directory into the working directory in the container
# Make sure the HTML files are in the same directory as the Dockerfile or adjust the path
COPY . .

# Expose port 80 for HTTP traffic
EXPOSE 80

# Start Nginx when the container starts
CMD ["nginx", "-g", "daemon off;"]