Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1234567891012 unmodified lines2324252627282930313233343536373839404142434445# Basis-ImageFROM python:3.13.5-slim# ArbeitsverzeichnisWORKDIR /app# Systempakete installieren (Cairo, GLib, Pango, Fonts, Build-Tools)RUN apt-get update && apt-get install -y \build-essential \curl \12 unmodified linesCOPY 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# 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"]1234567812 unmodified lines21222324252627282930313233343536373839FROM python:3.13.5-slimWORKDIR /app# Systempakete installierenRUN apt-get update && apt-get install -y \build-essential \curl \12 unmodified linesCOPY requirements.txt ./RUN pip3 install --no-cache-dir -r requirements.txt# App-CodeCOPY src/ ./src/# Python-Module importierbarENV PYTHONPATH=/app/src# Schreibbare Config & CacheENV HOME=/tmpENV STREAMLIT_HOME=/tmp/.streamlitENV FONTCONFIG_PATH=/tmp/.cacheENV FONTCONFIG_FILE=/tmp/.cache/fonts.confRUN mkdir -p /tmp/.streamlit /tmp/.cacheEXPOSE 8501ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
Dockerfile+6-12