File size: 330 Bytes
e15d7ea
 
 
 
b6e4627
 
 
e15d7ea
 
 
 
 
 
 
 
b13f53a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.10-slim

WORKDIR /app

# Set Hugging Face cache directory to a writable location
ENV HF_HOME=/tmp/hf_cache

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN python -m spacy download en_core_web_sm

COPY . .

EXPOSE 8000

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