Spaces:
Running
Running
Download Dockerfile from bigcomputer/SWE-Arena: direct link, hf CLI and curl.
- Browser
- Download file 795 Bytes
-
https://huggingface.co/spaces/bigcomputer/SWE-Arena/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bigcomputer/SWE-Arena/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bigcomputer/SWE-Arena/resolve/main/Dockerfile
795 Bytes
| 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"] | |