Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files12345678910111213141516FROM ghcr.io/get-convex/convex-backend:latestUSER root# Install Python (for HF CLI) and Nginx (for routing)RUN apt-get update && apt-get install -y python3 python3-pip nginx && rm -rf /var/lib/apt/lists/*RUN pip3 install -U "huggingface_hub[cli]" --break-system-packagesCOPY sync_script.sh /sync_script.shCOPY nginx.conf /etc/nginx/nginx.confRUN chmod +x /sync_script.sh# HF expects apps to listen on 7860EXPOSE 7860# Override the hidden Convex entrypointENTRYPOINT ["/bin/bash", "/sync_script.sh"]12345678910111213141516FROM ghcr.io/get-convex/convex-backend:latestUSER root# Install Python (for the dashboard) and Nginx (for routing)RUN apt-get update && apt-get install -y python3 nginx && rm -rf /var/lib/apt/lists/*WORKDIR /appCOPY billing_dashboard.py /app/billing_dashboard.pyCOPY nginx.conf /etc/nginx/nginx.confCOPY start.sh /start.shRUN chmod +x /start.sh# Hugging Face exposes this portEXPOSE 7860ENTRYPOINT ["/bin/bash", "/start.sh"]
Dockerfile+8-8