| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PORT=8501 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git git-lfs ffmpeg libsm6 libxext6 cmake libgl1 build-essential \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -U pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 8501 | |
| CMD ["sh", "-c", "streamlit run app.py --server.port $PORT --server.address 0.0.0.0"] | |