File size: 382 Bytes
90ab8bf
82ebf76
90ab8bf
 
82ebf76
 
c372ed2
82ebf76
0e31d8c
82ebf76
0e31d8c
82ebf76
c5a9938
82ebf76
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.11-slim-bookworm

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN python -c "import nltk; nltk.download('vader_lexicon', quiet=True); nltk.download('punkt_tab', quiet=True)"

COPY . .
EXPOSE 7860
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]