File size: 308 Bytes
860265a
 
 
 
 
 
 
 
 
 
 
 
 
6039d0c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM python:3.9-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

RUN mkdir -p /app/model_cache && chmod -R 777 /app/model_cache
ENV TRANSFORMERS_CACHE=/app/model_cache
ENV HF_HOME=/app/model_cache

COPY . .

CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]