FROM ghcr.io/get-convex/convex-backend:latest USER root # Install Python (for the dashboard), Nginx (for routing), and curl (for startup health check) RUN apt-get update && apt-get install -y python3 nginx curl && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY billing_dashboard.py /app/billing_dashboard.py COPY nginx.conf /etc/nginx/nginx.conf COPY start.sh /start.sh RUN chmod +x /start.sh # Hugging Face exposes this port EXPOSE 7860 ENTRYPOINT ["/bin/bash", "/start.sh"]