Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files2 unmodified lines34567896 unmodified lines161718181920212122232422232 unmodified lines# HuggingFace Spaces runs as user 1000 — set it up properlyRUN useradd -m -u 1000 userUSER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app6 unmodified lines# Copy app sourceCOPY --chown=user . .
# Gradio listens on 7860 by default — HF Docker Spaces expect this port# HF Docker Spaces expect port 7860EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"ENV GRADIO_SERVER_PORT="7860"
CMD ["python", "app.py"]# FastAPI via uvicorn — 0.0.0.0 required for HF to route traffic inCMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]Dockerfile+4-5