File size: 1,040 Bytes
19ff67f
4c18daa
 
 
 
 
19ff67f
 
4c18daa
 
19ff67f
4c18daa
19ff67f
 
4c18daa
19ff67f
4c18daa
6c81508
 
 
 
 
 
 
 
 
 
19ff67f
4c18daa
6c81508
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
FROM python:3.11-slim

WORKDIR /app

RUN apt-get update && apt-get install -y \
    git \
    libgl1 \
    libglib2.0-0 \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt .

RUN pip install --no-cache-dir --upgrade pip && \
    pip install --no-cache-dir -r requirements.txt

COPY . .

RUN echo "===== DEBUG BUILD CONTENT =====" && \
    pwd && \
    ls -la && \
    echo "===== app.py bit_depth lines =====" && \
    grep -n "bit_depth = min" app.py || true && \
    echo "===== render time search =====" && \
    grep -n "Render time\\|render time\\|time.time" app.py || true && \
    echo "===== Docker debug marker =====" && \
    date -u

EXPOSE 8501

CMD sh -c 'echo "===== DEBUG RUNTIME CONTENT ====="; pwd; ls -la; echo "===== Runtime app.py bit_depth lines ====="; grep -n "bit_depth = min" app.py || true; echo "===== Runtime render time search ====="; grep -n "Render time\\|render time\\|time.time" app.py || true; echo "===== Starting Streamlit ====="; streamlit run app.py --server.address=0.0.0.0 --server.port=8501'