FROM ubuntu # Update package list and install dependencies RUN apt update && apt install -y git python3 python3-pip python3-venv # Clone the repository RUN git clone https://github.com/BigComputer-Project/SWE-Arena.git # Set up a virtual environment and install dependencies RUN python3 -m venv /venv && \ /venv/bin/pip install --upgrade pip && \ /venv/bin/pip install -e "SWE-Arena[model_worker,webui]" # Set the virtual environment as default ENV PATH="/venv/bin:$PATH" # Create a writable logs directory RUN mkdir -p /SWE-Arena/logs && chmod -R 777 /SWE-Arena/logs # Set the working directory WORKDIR /SWE-Arena # Run the application CMD ["python", "-m", "fastchat.serve.gradio_web_server_multi", "--controller", "", "--register", "api_endpoints_serve.json", "--vision-arena"]