File size: 357 Bytes
d83918d
3a91b41
01c75f4
 
 
ba923db
3a91b41
ba923db
01c75f4
 
 
3a91b41
 
 
 
01c75f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.9-slim

# Create and set cache directory
ENV TRANSFORMERS_CACHE=/app/cache
RUN mkdir -p ${TRANSFORMERS_CACHE} && chmod 777 ${TRANSFORMERS_CACHE}

WORKDIR /app
COPY requirements.txt .

# Install packages
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

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