email_classifier / Dockerfile
sanabanu31's picture
Update Dockerfile
d8c4869 verified
raw
history blame contribute delete
343 Bytes
FROM python:3.11-slim
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir sentencepiece
RUN pip install --no-cache-dir scikit-learn==1.6.1
ENV TRANSFORMERS_CACHE=/tmp/huggingface
COPY . /app
WORKDIR /app
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]