Spaces:
Sleeping
Sleeping
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install required system libraries and git-lfs | |
| RUN apt-get update && apt-get install -y \ | |
| git-lfs \ | |
| git \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| libgl1 \ | |
| && git lfs install \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Ensure torch hub writes to safe directory | |
| ENV TORCH_HOME=/app/.torch_cache | |
| RUN mkdir -p /app/.torch_cache && chmod -R 777 /app/.torch_cache | |
| # Copy all files (including LFS pointers) | |
| COPY . . | |
| # Pull actual LFS content | |
| RUN git lfs pull | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 8501 | |
| ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |