text-classification / Dockerfile
manue
Update Dockerfile and sentiment model initialization for improved caching and remove obsolete model reference
7163daa
raw
history blame
184 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY . /app
ENV HUGGINGFACE_DISABLE_CACHE=1
RUN pip install --no-cache-dir -r requirements.txt
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]