mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
* update the behavior of put source code to put files instead of tarball * add dishash to dependency * fix dockerfile copy * use dirhash to avoid repeat building for update source * fix runtime_build testcase * add dir_hash to docker build pipeline * add additional tests for source directory * add comment * clear the assertion by explictly check existing files * also assert od is a dir
Dynamic constructed Dockerfile
This folder builds runtime image (sandbox), which will use a Dockerfile that is dynamically generated depends on the base_image AND a Python source distribution that's based on the current commit of opendevin.
The following command will generate Dockerfile for ubuntu:22.04 and the source distribution .tar into containers/runtime.
poetry run python3 opendevin/runtime/utils/runtime_build.py \
--base_image ubuntu:22.04 \
--build_folder containers/runtime