# Use a lightweight Nginx base image FROM nginx:alpine # Copy the custom index.html file into the Nginx default directory # Nginx serves content from /usr/share/nginx/html by default COPY index.html /usr/share/nginx/html/index.html # Expose port 80, which is a privileged port (<1024) # Nginx's master process runs as root to bind to this port, # then worker processes drop privileges. EXPOSE 80 # The default Nginx CMD will start the server # CMD ["nginx", "-g", "daemon off;"]