Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +12 -3
Dockerfile
CHANGED
@@ -1,9 +1,18 @@
|
|
1 |
FROM ubuntu
|
2 |
|
3 |
-
|
|
|
4 |
|
|
|
5 |
RUN git clone https://github.com/BigComputer-Project/SWE-Arena.git
|
6 |
|
7 |
-
|
|
|
|
|
|
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
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"]
|