summarization-api-3 / Dockerfile
Anwar11234
first commit
8ceb2a8
raw
history blame contribute delete
278 Bytes
FROM python:3.10.9
COPY . .
WORKDIR /
RUN mkdir -p /.cache/huggingface/hub
# Separate RUN command for chmod
RUN chmod -R 777 /.cache/huggingface
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]