FROM nginx:alpine

# Static site content
COPY comingsoon/ /usr/share/nginx/html/

# Monitoring dashboard, served at /dashboard
COPY dashboard/ /usr/share/nginx/html/dashboard/

# Custom server config: adds /health and /nginx_status
COPY nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 80

HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
  CMD wget -qO- http://localhost/health || exit 1
