| FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Expose Streamlit port | |
| EXPOSE 8501 | |
| # Default command (can be overridden) | |
| CMD ["streamlit", "run", "src/visualization/app.py", "--server.port", "8501", "--server.address", "0.0.0.0"] | |