File size: 795 Bytes
ca56dea
 
af24577
 
33d3ace
af24577
ca56dea
33d3ace
af24577
 
 
 
33d3ace
af24577
 
 
11da44c
 
 
 
 
 
af24577
 
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
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"]