File size: 416 Bytes
d462afd
b07407e
 
 
151afba
 
 
 
 
d462afd
b07407e
 
151afba
b07407e
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.9 

WORKDIR /app

# βœ… Set Hugging Face Cache to /tmp
ENV HF_HOME=/tmp/huggingface
ENV TRANSFORMERS_CACHE=/tmp/huggingface
ENV HF_HUB_CACHE=/tmp/huggingface

# βœ… Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir accelerate scipy huggingface_hub

COPY . .

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]