Spaces:
Sleeping
Sleeping
| # Use Python 3.10 slim image as base | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Clone the repository | |
| RUN git clone https://github.com/Hiren223344/lmarena.git /app | |
| # Install Python dependencies | |
| # Adjust requirements file path if different in your project | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi | |
| # Expose port (adjust if your app uses a different port) | |
| EXPOSE 7860 | |
| # Set environment variables for Hugging Face Spaces | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| ENV GRADIO_SERVER_PORT=7860 | |
| # Run the main application | |
| CMD ["python", "src/main.py"] |