# Use the official NGINX image from Docker Hub
FROM nginx:latest

# Set the maintainer label (optional)
LABEL maintainer="suporte@vetorweb.com.br"

# Remove the default NGINX index.html page
RUN rm /usr/share/nginx/html/index.html

# Copy your static website content to the default NGINX web directory
COPY ./ /usr/share/nginx/html

# Copy a custom NGINX configuration file to overwrite the default one
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

# Expose port 80 for HTTP traffic
EXPOSE 80

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

