File size: 735 Bytes
246d201
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# Dynamically constructed Dockerfile

This folder builds a runtime image (sandbox), which will use a dynamically generated `Dockerfile`
that depends on the `base_image` **AND** a [Python source distribution](https://docs.python.org/3.10/distutils/sourcedist.html) that is based on the current commit of `openhands`.

The following command will generate a `Dockerfile` file for `nikolaik/python-nodejs:python3.12-nodejs22` (the default base image), an updated `config.sh` and the runtime source distribution files/folders into `containers/runtime`:

```bash

poetry run python3 openhands/runtime/utils/runtime_build.py \

    --base_image nikolaik/python-nodejs:python3.12-nodejs22 \

    --build_folder containers/runtime

```