Spaces:
Running
Running
Download Dockerfile from muddasser/Streaming_Bot: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/spaces/muddasser/Streaming_Bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/muddasser/Streaming_Bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/muddasser/Streaming_Bot/resolve/main/Dockerfile
680 Bytes
| FROM python:3.11-slim | |
| # Non-root user (required by Hugging Face Spaces) and the folder for the transcript database. | |
| # Enable "Persistent Storage" on the Space so /data survives restarts. | |
| RUN useradd -m -u 1000 user && mkdir -p /data && chown user /data | |
| USER user | |
| ENV PATH=/home/user/.local/bin:$PATH \ | |
| INTERVIEWS_DB_PATH=/data/interviews.db | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] |