CoolFace
Apppublic

BASANT1896/text-summarisation

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
Dockerfile15 linesDownload Raw Back to root
1FROM python:3.11-slim
2
3WORKDIR /code
4
5COPY ./requirements.txt /code/requirements.txt
6
7# This cleans up the Render-specific CPU lines from your requirements.txt
8# and installs the packages safely on Hugging Face's 16GB servers
9RUN sed -i '/--extra-index-url/d' /code/requirements.txt && \
10    sed -i 's/==2.12.1+cpu//g' /code/requirements.txt && \
11    pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
13COPY . .
14
15CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]