Spaces:
Running
Running
File size: 336 Bytes
49e02c9 2035bab 5e4db2b 49e02c9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
FROM python:3.12-slim
RUN apt-get update && apt-get install -y git
RUN mkdir -p /data/huggingface && chmod -R 777 /data/huggingface
ENV HF_HOME=/data/huggingface
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|