Spaces:
Runtime error
Runtime error
Download Dockerfile from ChatBotsTA/pdf-summarizer: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/ChatBotsTA/pdf-summarizer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ChatBotsTA/pdf-summarizer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ChatBotsTA/pdf-summarizer/resolve/main/Dockerfile
359 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # copy app | |
| COPY app.py . | |
| # streamlit config for production | |
| ENV STREAMLIT_SERVER_ENABLE_CORS=false | |
| ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false | |
| EXPOSE 8501 | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |