Spaces:
Sleeping

File size: 846 Bytes
202a137
d27b82d
3f304d1
03960fa
d27b82d
0fe74ee
43b3824
c2d76fa
 
3f304d1
43b3824
0fe74ee
43b3824
 
202a137
43b3824
ef95ff5
03960fa
3f304d1
43b3824
 
256638c
3f304d1
43b3824
 
3f304d1
 
0fe74ee
85ab799
3f304d1
834420c
add515c
3f304d1
43b3824
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"]