# Use the official Nginx image as the base FROM nginx:latest # Copy the custom Nginx configuration file COPY nginx.conf /etc/nginx/conf.d/default.conf # Expose port 80 for incoming HTTP requests EXPOSE 80 # Start Nginx in the foreground CMD ["nginx", "-g", "daemon off;"]