workspace-template-openclaw (sha-2b86bdd)
Published 2026-08-05 12:39:13 +00:00 by hongming
Installation
docker pull git.moleculesai.app/molecule-ai/workspace-template-openclaw:sha-2b86bddsha256:17d63803a0c4a9c130d95bd4446b48d34186710712225e7baa70bd9e18549a3c
About this package
Molecule AI workspace template — openclaw runtime
Image Layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1785715200' |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV LANG=C.UTF-8 |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit |
| ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D |
| ENV PYTHON_VERSION=3.11.15 |
| ENV PYTHON_SHA256=272179ddd9a2e41a0fc8e42e33dfbdca0b3711aa5abf372d3f2d51543d09b625 |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==79.0.1' 'wheel==0.46.3' ; pip3 --version # buildkit |
| RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit |
| CMD ["python3"] |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl gosu ca-certificates gnupg sudo util-linux docker.io && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y --no-install-recommends nodejs && rm -rf /var/lib/apt/lists/* && node --version | grep -E '^v22\.' || (echo "::error::expected Node 22, got $(node --version)" >&2; exit 1) # buildkit |
| ARG OPENCLAW_VERSION=2026.7.1-2 |
| RUN |1 OPENCLAW_VERSION=2026.7.1-2 /bin/sh -c npm install -g "openclaw@${OPENCLAW_VERSION}" && openclaw --version # buildkit |
| RUN |1 OPENCLAW_VERSION=2026.7.1-2 /bin/sh -c useradd -u 1000 -m -s /bin/bash agent # buildkit |
| RUN |1 OPENCLAW_VERSION=2026.7.1-2 /bin/sh -c set -eux; printf 'agent ALL=(ALL) NOPASSWD:ALL\n' > /etc/sudoers.d/agent-t4; chmod 0440 /etc/sudoers.d/agent-t4; visudo -cf /etc/sudoers.d/agent-t4; groupadd -f docker; groupadd -g 988 -f docker-host || true; usermod -aG docker agent; usermod -aG docker-host agent || true; id agent # buildkit |
| WORKDIR /app |
| ARG RUNTIME_VERSION=0.4.87 |
| ARG MOLECULE_RUNTIME_INDEX=https://git.moleculesai.app/api/packages/molecule-ai/pypi/simple/ |
| COPY requirements.txt . # buildkit |
| COPY scripts/prepare-runtime-requirements.py /usr/local/bin/prepare-runtime-requirements.py # buildkit |
| RUN |3 OPENCLAW_VERSION=2026.7.1-2 RUNTIME_VERSION=0.4.87 MOLECULE_RUNTIME_INDEX=https://git.moleculesai.app/api/packages/molecule-ai/pypi/simple/ /bin/sh -c set -eux; runtime_project="molecules-workspace-runtime"; rm -rf /tmp/molecule-runtime; mkdir -p /tmp/molecule-runtime; runtime_requirement="$(python3 /usr/local/bin/prepare-runtime-requirements.py requirements.txt /tmp/template-requirements.txt "${RUNTIME_VERSION}")"; case "${runtime_requirement}" in "${runtime_project}"*) ;; *) exit 1 ;; esac; pip download --isolated --only-binary=:all: --no-deps --index-url "$MOLECULE_RUNTIME_INDEX" --dest /tmp/molecule-runtime "${runtime_requirement}"; runtime_wheel_count="$(find /tmp/molecule-runtime -maxdepth 1 -type f -name 'molecules_workspace_runtime-*.whl' | wc -l)"; test "${runtime_wheel_count}" -eq 1; runtime_wheel="$(find /tmp/molecule-runtime -maxdepth 1 -type f -name 'molecules_workspace_runtime-*.whl')"; pip install --isolated --no-cache-dir "${runtime_wheel}" -r /tmp/template-requirements.txt; rm -rf /tmp/molecule-runtime /tmp/template-requirements.txt # buildkit |
| USER agent |
| RUN |3 OPENCLAW_VERSION=2026.7.1-2 RUNTIME_VERSION=0.4.87 MOLECULE_RUNTIME_INDEX=https://git.moleculesai.app/api/packages/molecule-ai/pypi/simple/ /bin/sh -c bash "$(python3 -c 'import molecule_runtime, os; print(os.path.dirname(molecule_runtime.__file__))')/scripts/prebake-mgmt-mcp.sh" # buildkit |
| USER root |
| ENV npm_config_cache=/home/agent/.npm NPM_CONFIG_USERCONFIG=/home/agent/.npmrc |
| COPY adapter.py . # buildkit |
| COPY __init__.py . # buildkit |
| COPY scripts/molecule-askpass /usr/local/bin/molecule-askpass # buildkit |
| RUN |3 OPENCLAW_VERSION=2026.7.1-2 RUNTIME_VERSION=0.4.87 MOLECULE_RUNTIME_INDEX=https://git.moleculesai.app/api/packages/molecule-ai/pypi/simple/ /bin/sh -c chmod +x /usr/local/bin/molecule-askpass # buildkit |
| ENV ADAPTER_MODULE=adapter |
| COPY entrypoint.sh /entrypoint.sh # buildkit |
| RUN |3 OPENCLAW_VERSION=2026.7.1-2 RUNTIME_VERSION=0.4.87 MOLECULE_RUNTIME_INDEX=https://git.moleculesai.app/api/packages/molecule-ai/pypi/simple/ /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| ENTRYPOINT ["/entrypoint.sh"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.description | Molecule AI workspace template — openclaw runtime |
| org.opencontainers.image.revision | 2b86bdd16b6105279306a4afaec1b1fc8cc43173 |
| org.opencontainers.image.source | https://git.moleculesai.app/molecule-ai/molecule-ai-workspace-template-openclaw |
Details
Versions (8)
View all
latest
2026-08-05
sha-2b86bdd
2026-08-05
sha-5e3d331
2026-08-05
sha-93c4564
2026-08-05
sha-434aca0
2026-08-04