Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1234565789108 unmodified lines19202122232425262728293031272829303132333233343536373839404142434445# Basis-ImageFROM python:3.13.5-slim
# ArbeitsverzeichnisWORKDIR /app
# System-Pakete installieren# Systempakete installieren (Cairo, GLib, Pango, Fonts, Build-Tools)RUN apt-get update && apt-get install -y \ build-essential \ curl \8 unmodified lines pkg-config \ && rm -rf /var/lib/apt/lists/*
# Python-AbhängigkeitenCOPY requirements.txt ./RUN pip3 install --no-cache-dir -r requirements.txt
# App-Code kopierenCOPY src/ ./src/
# Python-Module aus src/ importierbar machenENV PYTHONPATH=/app/src
# Streamlit Config & Font CacheRUN mkdir -p /app/.streamlit /app/.cache \ && chmod -R 777 /app/.streamlit /app/.cache
ENV STREAMLIT_HOME=/app/.streamlitENV FONTCONFIG_PATH=/app/.cacheENV FONTCONFIG_FILE=/app/.cache/fonts.conf# Schreibbare Streamlit Config & Font CacheRUN mkdir -p /tmp/.streamlit /tmp/.cacheENV STREAMLIT_HOME=/tmp/.streamlitENV FONTCONFIG_PATH=/tmp/.cacheENV FONTCONFIG_FILE=/tmp/.cache/fonts.conf
# Port für StreamlitEXPOSE 8501
# HealthcheckHEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
# Start der Streamlit-AppENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]Dockerfile+14-8