Spaces:
Sleeping
Sleeping
File size: 365 Bytes
5fca79f b729f12 1eee1c0 5fca79f b729f12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM python:3.10-slim
RUN mkdir -p /tmp/huggingface
ENV HF_HOME=/tmp
# Working directory
WORKDIR /app
# Copy files
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
# Expose port 7860 (as per HF spec)
EXPOSE 7860
# Command to run FastAPI app with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|