Corp_AI / Dockerfile
minato1718's picture
feat: add Gradio playground UI on port 7860 for HuggingFace Spaces
9ff0fa2
raw
history blame contribute delete
538 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY src ./src
COPY configs ./configs
COPY openenv.yaml ./openenv.yaml
COPY inference.py ./inference.py
COPY scripts ./scripts
COPY app.py ./app.py
# Create data directory (fallback synthetic data used if empty)
RUN mkdir -p data
# HuggingFace Spaces expects port 7860
EXPOSE 7860
# app.py starts FastAPI internally on 8000, then launches Gradio on 7860
CMD ["python", "app.py"]