FROM nginx:latest

# Copy custom configuration file
COPY nginx.conf /etc/nginx/nginx.conf

# Copy default site configuration
COPY default.conf /etc/nginx/conf.d/default.conf

# Create directory for website files
RUN mkdir -p /usr/share/nginx/html

# Copy website files
COPY index.html /usr/share/nginx/html/

# Expose port 80
EXPOSE 80

# Start Nginx
CMD ["nginx", "-g", "daemon off;"]
