| 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' |