Download Dockerfile from SLSLK/stream: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/spaces/SLSLK/stream/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SLSLK/stream/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SLSLK/stream/resolve/main/Dockerfile
531 Bytes
| # Basis-Image | |
| FROM python:3.11-slim | |
| # Arbeitsverzeichnis | |
| WORKDIR /app | |
| # System-Abhängigkeiten (optional, aber empfohlen) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Requirements kopieren | |
| COPY requirements.txt . | |
| # Python Dependencies installieren | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # App kopieren | |
| COPY . . | |
| # Port freigeben | |
| EXPOSE 8501 | |
| # Streamlit starten | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] |