Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| libgl1 \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set SPACE_ID to bypass Gradio OAuth warnings | |
| ENV SPACE_ID=vinhle/First_agent_template | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Create a user to avoid running as root (HF Spaces recommendation) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR /home/user/app | |
| # Copy the rest of the application | |
| COPY --chown=user . /home/user/app | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Run the evaluation/submission app | |
| CMD ["python", "eval.py"] | |