# Use the official nginx base image FROM nginx # Copy the site files from the local /web folder to the container's /usr/share/nginx/html folder COPY ./web /usr/share/nginx/html # Copy the custom nginx config file COPY nginx.conf /etc/nginx/nginx.conf # Expose port 80 for HTTP traffic EXPOSE 80 # Expose port 443 for HTTPs traffic EXPOSE 443 # Start the nginx server CMD ["nginx", "-g", "daemon off;"]