paperclip-agent-runtime-opencode (git-5282759)
Published 2026-11-25 00:53:39 +00:00 by dan
Installation
docker pull forge.coffee-anon.com/dan/paperclip-agent-runtime-opencode:git-5282759sha256:6a56836a2831d7a7db98f003539cc46ec6a81fe846a46654a322926fccfbfff8Image layers
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=22.04 |
| ADD file:799f4e238d67485cc109d93512f4fe6f75bafc26a3476772191154125e52201d in / |
| CMD ["/bin/bash"] |
| ARG NODE_VERSION |
| RUN |1 NODE_VERSION=24 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git tini gnupg ripgrep && rm -rf /var/lib/apt/lists/* && curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && apt-get install -y --no-install-recommends nodejs && apt-get clean && rm -rf /var/lib/apt/lists/* && groupadd -g 1000 paperclip && useradd -u 1000 -g 1000 -d /home/paperclip -m -s /bin/bash paperclip # buildkit |
| COPY /out/paperclip-agent-shim /usr/local/bin/paperclip-agent-shim # buildkit |
| USER 1000:1000 |
| WORKDIR /workspace |
| ENTRYPOINT ["/usr/bin/tini" "--"] |
| CMD ["/usr/local/bin/paperclip-agent-shim"] |
| USER root |
| RUN /bin/sh -c npm install -g opencode-ai@latest && { chown -R 1000:1000 /usr/lib/node_modules || true; } # buildkit |
| USER 1000:1000 |
| RUN /bin/sh -c command -v opencode >/dev/null 2>&1 || (echo "opencode not on PATH"; exit 1) # buildkit |
| USER root |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends make jq && rm -rf /var/lib/apt/lists/* && jq --version # buildkit |
| COPY /uv /uvx /usr/local/lib/sandbox-guard/ # buildkit |
| ENV UV_PYTHON_INSTALL_DIR=/opt/uv-python |
| RUN /bin/sh -c mv /usr/local/lib/sandbox-guard/uv /usr/local/lib/sandbox-guard/uv-real && ln -s /usr/local/lib/sandbox-guard/uvx /usr/local/bin/uvx && /usr/local/lib/sandbox-guard/uv-real python install 3.12 && py="$(/usr/local/lib/sandbox-guard/uv-real python find 3.12)" && /usr/local/lib/sandbox-guard/uv-real pip install --quiet --break-system-packages --python "$py" pip pytest pyyaml ruff==0.16.10 oxlint==1.74.0 && bin="$(dirname "$py")" && ln -s "$py" /usr/local/bin/python3 && ln -s "$py" /usr/local/bin/python && ln -s "$bin/pip" /usr/local/bin/pip && ln -s "$bin/pytest" /usr/local/bin/pytest && ln -s "$bin/ruff" /usr/local/bin/ruff && ln -s "$bin/oxlint" /usr/local/bin/oxlint && chmod -R a+rX /opt/uv-python && python3 -c 'import sys; assert sys.version_info >= (3, 12), sys.version; import tomllib' && python3 -c 'import pytest, pip, yaml' && python3 -m pip --version && pytest --version && ruff --version && oxlint --version # buildkit |
| COPY sandbox-guard/ /usr/local/lib/sandbox-guard/ # buildkit |
| COPY opencode-config/package.json opencode-config/package-lock.json /usr/local/share/opencode-router-config/ # buildkit |
| COPY opencode-router-config/ /usr/local/share/opencode-router-config/ # buildkit |
| RUN /bin/sh -c cd /usr/local/share/opencode-router-config && npm ci --ignore-scripts --no-audit --no-fund --loglevel=error && test -f node_modules/@opencode-ai/plugin/package.json && printf 'node_modules\npackage.json\npackage-lock.json\nbun.lock\n.gitignore' > .gitignore # buildkit |
| COPY opencode-config/ /usr/local/share/opencode-config/ # buildkit |
| RUN /bin/sh -c cd /usr/local/share/opencode-config && npm ci --ignore-scripts --no-audit --no-fund --loglevel=error && test -f node_modules/@opencode-ai/plugin/package.json && printf 'node_modules\npackage.json\npackage-lock.json\nbun.lock\n.gitignore' > .gitignore # buildkit |
| ENV OPENCODE_CONFIG_DIR=/usr/local/share/opencode-config |
| ENV NODE_OPTIONS=--import=/usr/local/lib/sandbox-guard/node-guard.mjs |
| ENV PYTEST_PLUGINS=sandbox_guard |
| ENV PYTHONPATH=/usr/local/lib/sandbox-guard |
| ENV RUN_TESTS_VENV_DIR=/tmp/run-tests-venvs |
| COPY specifier/spec_checks.py /usr/local/share/specifier/ # buildkit |
| COPY agent-test/agent-test agent-test/agent_test_core.py agent-test/adapter_facts.py /usr/local/lib/agent-test/ # buildkit |
| RUN /bin/sh -c chmod -R a+rX /usr/local/lib/sandbox-guard /usr/local/share/opencode-config /usr/local/share/opencode-router-config /usr/local/share/specifier # buildkit |
| RUN /bin/sh -c chmod 0755 /usr/local/lib/agent-test/agent-test && chmod 0644 /usr/local/lib/agent-test/agent_test_core.py /usr/local/lib/agent-test/adapter_facts.py && chmod 755 /usr/local/lib/sandbox-guard/agent-test-sandbox && chmod 755 /usr/local/lib/sandbox-guard/git-trust/git && ln -s /usr/local/lib/sandbox-guard/agent-test-sandbox /usr/local/bin/agent-test && chmod 755 /usr/local/lib/sandbox-guard/run-tests && ln -s /usr/local/lib/sandbox-guard/run-tests /usr/local/bin/run-tests && chmod 755 /usr/local/lib/sandbox-guard/uv-nudge && ln -s /usr/local/lib/sandbox-guard/uv-nudge /usr/local/bin/uv && uv --version && node -e 0 && python3 -c "import sandbox_guard" && agent-test --help && run-tests --help && python3 /usr/local/share/specifier/spec_checks.py --help # buildkit |
| USER 1000:1000 |
| ARG BUILD_CONTEXT_SHA256=5c26d3c55031ac97dcd0a57d7f641856e2c58c1a49b6ab4026ce3cec17b30b44 |
| LABEL org.scrapyard.build-context-sha256=5c26d3c55031ac97dcd0a57d7f641856e2c58c1a49b6ab4026ce3cec17b30b44 |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.version | 22.04 |
| org.scrapyard.build-context-sha256 | 5c26d3c55031ac97dcd0a57d7f641856e2c58c1a49b6ab4026ce3cec17b30b44 |
Details
2026-11-25 00:53:39 +00:00
Versions (6)
View all
Container
34
OCI / Docker
linux/amd64
513 MiB
git-bdaaf8f
2026-11-26
git-5282759
2026-11-25
git-4ace3ab
2026-11-22
git-4c71727
2026-11-20
git-3f5da622-15
2026-11-13