# Use an official Nginx runtime as the base image | |
FROM nginx:latest | |
# Copy the HTML page to the Nginx document root directory | |
COPY index.html /usr/share/nginx/html | |
# Expose the default Nginx port | |
EXPOSE 80 | |
# Start the Nginx server when the container launches | |
CMD ["nginx", "-g", "daemon off;"] | |