Spaces:
Sleeping
Sleeping
Download Dockerfile from DSGC/admin_dashboard: direct link, hf CLI and curl.
- Browser
- Download file 846 Bytes
-
https://huggingface.co/spaces/DSGC/admin_dashboard/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DSGC/admin_dashboard/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DSGC/admin_dashboard/resolve/main/Dockerfile
846 Bytes
| FROM python:3.12.4-slim | |
| # Arbeitsverzeichnis | |
| WORKDIR /app | |
| # Systembibliotheken (Cairo/Fontconfig für Altair/Plotly/EasyOCR/WeasyPrint) | |
| RUN apt-get update && apt-get install -y \ | |
| libcairo2 \ | |
| libglib2.0-0 \ | |
| libpango-1.0-0 \ | |
| libfontconfig1 \ | |
| tesseract-ocr \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Python-Abhängigkeiten | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # App-Code kopieren | |
| COPY src/ ./src/ | |
| ENV PYTHONPATH=/app/src | |
| # Streamlit Konfiguration | |
| ENV HOME=/tmp | |
| ENV FONTCONFIG_PATH=/tmp/.fontconfig | |
| ENV STREAMLIT_INSTALLATION_ID=DISABLED | |
| ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false | |
| RUN mkdir -p /tmp/.fontconfig /src/data | |
| # Port für Streamlit | |
| EXPOSE 8501 | |
| # Streamlit starten | |
| ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |