This section is about modifying the Docker image in which we run the commands suggested by the agent.
There are two reasons to build your own Docker image
There are three steps involved:
swe.Dockerfile
Dockerfile (also shown below).
We provide some extended explanation of the Dockerfile here.Build the image. One way is to simply run ./setup.sh
. Alternatively, especially if you want to change the default tag (sweagent/swe-agent:latest
), run
docker build -t "YOUR TAG HERE" -f docker/swe.Dockerfile \
--build-arg TARGETARCH=$(uname -m) .
--image_name
flag to run.py
.Default Dockerfile:
--8<-- "docker/swe.Dockerfile"