Skip to content

Commit e7e1928

Browse files
authored
Added smolagents to base image (#104)
* Added smolagents to base image * Removed smol agents from coding env, already in base iamge
1 parent 7f2384b commit e7e1928

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

src/core/containers/images/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2828

2929
# Install Python dependencies that all environments need
3030
RUN pip install --no-cache-dir \
31-
fastapi>=0.104.0 \
31+
"fastapi>=0.104.0" \
3232
"uvicorn[standard]>=0.24.0" \
33-
requests>=2.25.0 \
34-
wsproto>=1.0.0
33+
"requests>=2.25.0" \
34+
"wsproto>=1.0.0" \
35+
smolagents
3536

3637
# Set working directory
3738
WORKDIR /app

src/envs/coding_env/server/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
ARG BASE_IMAGE=openenv-base:latest
1111
FROM ${BASE_IMAGE}
1212

13-
# Install dependencies
14-
COPY src/envs/coding_env/server/requirements.txt /tmp/requirements.txt
15-
RUN pip install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt
16-
1713
# Copy only what's needed for this environment
1814
COPY src/core/ /app/src/core/
1915
COPY src/envs/coding_env/ /app/src/envs/coding_env/

src/envs/coding_env/server/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/envs/git_env/server/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ RUN apt-get update && apt-get install -y \
1313
ca-certificates \
1414
&& rm -rf /var/lib/apt/lists/*
1515

16-
# Install smolagents (required by core.tools.PyExecutor, even though git_env doesn't use it directly)
17-
RUN pip install --no-cache-dir smolagents
18-
1916
# Create workspace directory for git operations
2017
RUN mkdir -p /workspace && chmod 777 /workspace
2118

0 commit comments

Comments
 (0)