FROM argilla/argilla-hf-spaces:v2.8.0 # Copy the auth config COPY .oauth.yaml /home/argilla/ # Enable annotation progress sharing ENV ARGILLA_ENABLE_SHARE_YOUR_PROGRESS=1 # Uncomment to remove persistent storage warning # ENV ARGILLA_SHOW_HUGGINGFACE_SPACE_PERSISTENT_STORAGE_WARNING=false # Install FastAPI dependencies for the auto-ping monitor USER root RUN pip install --no-cache-dir \ fastapi>=0.111.0 \ "uvicorn[standard]>=0.29.0" \ apscheduler>=3.10.4 \ httpx>=0.27.0 # Copy the monitor app COPY app.py /home/argilla/monitor/app.py # Copy startup script that launches both Argilla + the monitor COPY start.sh /home/argilla/start.sh RUN chmod +x /home/argilla/start.sh USER argilla EXPOSE 7860 EXPOSE 8000 CMD ["/home/argilla/start.sh"]