vumichien commited on
Commit
af24577
·
verified ·
1 Parent(s): 323e1b4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -3
Dockerfile CHANGED
@@ -1,9 +1,18 @@
1
  FROM ubuntu
2
 
3
- RUN apt update && apt install -y git python3 python3-pip
 
4
 
 
5
  RUN git clone https://github.com/BigComputer-Project/SWE-Arena.git
6
 
7
- RUN cd SWE-Arena && pip install -e ".[model_worker,webui]"
 
 
 
8
 
9
- RUN python -m fastchat.serve.gradio_web_server_multi --controller "" --register api_endpoints_serve.json --vision-arena
 
 
 
 
 
1
  FROM ubuntu
2
 
3
+ # Update package list and install dependencies
4
+ RUN apt update && apt install -y git python3 python3-pip python3-venv
5
 
6
+ # Clone the repository
7
  RUN git clone https://github.com/BigComputer-Project/SWE-Arena.git
8
 
9
+ # Set up a virtual environment and install dependencies
10
+ RUN python3 -m venv /venv && \
11
+ /venv/bin/pip install --upgrade pip && \
12
+ /venv/bin/pip install -e "SWE-Arena[model_worker,webui]"
13
 
14
+ # Set the virtual environment as default
15
+ ENV PATH="/venv/bin:$PATH"
16
+
17
+ # Run the application
18
+ CMD ["python", "-m", "fastchat.serve.gradio_web_server_multi", "--controller", "", "--register", "api_endpoints_serve.json", "--vision-arena"]