Skip to content

Commit 82f256b

Browse files
authored
trim the sandbox image and install plugin dependencies in agnostic image (All-Hands-AI#2792)
* trim the sandbox image * remove wrong code * readd python * readd python * fix script * readd nano
1 parent d6570bd commit 82f256b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

containers/sandbox/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ RUN apt-get update && apt-get install -y \
1616
build-essential \
1717
openssh-server \
1818
sudo \
19-
bash \
2019
gcc \
2120
jq \
2221
g++ \
2322
make \
2423
iproute2 \
25-
libgl1-mesa-glx \
2624
&& rm -rf /var/lib/apt/lists/*
2725

2826
RUN mkdir -p -m0755 /var/run/sshd
@@ -41,4 +39,4 @@ RUN echo "" > /opendevin/bash.bashrc
4139
# - agentskills dependencies
4240
RUN /opendevin/miniforge3/bin/pip install --upgrade pip
4341
RUN /opendevin/miniforge3/bin/pip install jupyterlab notebook jupyter_kernel_gateway flake8
44-
RUN /opendevin/miniforge3/bin/pip install python-docx PyPDF2 python-pptx pylatexenc openai opencv-python
42+
RUN /opendevin/miniforge3/bin/pip install python-docx PyPDF2 python-pptx pylatexenc openai

opendevin/runtime/docker/image_agnostic_util.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ def generate_dockerfile_content(base_image: str) -> str:
2323
' bash Miniforge3-$(uname)-$(uname -m).sh -b -p /opendevin/miniforge3 && \\\n'
2424
' chmod -R g+w /opendevin/miniforge3 && \\\n'
2525
' bash -c ". /opendevin/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"; \\\n'
26-
' fi'
26+
' fi\n'
27+
'RUN /opendevin/miniforge3/bin/pip install --upgrade pip\n'
28+
'RUN /opendevin/miniforge3/bin/pip install jupyterlab notebook jupyter_kernel_gateway flake8\n'
29+
'RUN /opendevin/miniforge3/bin/pip install python-docx PyPDF2 python-pptx pylatexenc openai\n'
2730
).strip()
2831
return dockerfile_content
2932

0 commit comments

Comments
 (0)