python-nodejs:python3.12-nodejs22
from nikolaik/python-nodejs) comes with some packages installed such
as python and Node.js but may need other software installed by default.
You have two options for customization:
- Use an existing image with the required software.
- Create your own custom Docker image.
Create Your Docker Image
section.
Create Your Docker Image
To create a custom Docker image, it must be Debian based. For example, if you want OpenHands to haveruby
installed, you could create a Dockerfile
with the following content:
custom-image
, which will be available in Docker.
Using the Docker Command
When running OpenHands using the docker command, replace-e SANDBOX_RUNTIME_CONTAINER_IMAGE=...
with -e SANDBOX_BASE_CONTAINER_IMAGE=<custom image name>
:
Using the Development Workflow
Setup
First, ensure you can run OpenHands by following the instructions in Development.md.Specify the Base Sandbox Image
In theconfig.toml
file within the OpenHands directory, set the base_container_image
to the image you want to use.
This can be an image you’ve already pulled or one you’ve built:
Additional Configuration Options
Theconfig.toml
file supports several other options for customizing your sandbox:
Run
Run OpenHands by runningmake run
in the top level directory.