Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files123456789101112131415161718192021222324FROM python:3.11-slim
# HuggingFace Spaces runs as user 1000 — set it up properlyRUN useradd -m -u 1000 userUSER userENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
# Copy and install dependenciesCOPY --chown=user requirements.txt .RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt
# Copy app sourceCOPY --chown=user . .
# Gradio listens on 7860 by default — HF Docker Spaces expect this portEXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"ENV GRADIO_SERVER_PORT="7860"
CMD ["python", "app.py"]DockerfileAdded+24