Spaces:
Sleeping
Sleeping
File size: 806 Bytes
18961fc 417da02 18961fc 417da02 18961fc 417da02 18961fc 417da02 18961fc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # 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"] |