opencode (sha-dbc814792643)
Published 2026-10-30 07:20:06 +00:00 by mkovac
Installation
docker pull git.metalica.space/mkovac/opencode:sha-dbc814792643sha256:0d2f244080db2d85ea79f56844e0167ebf279382cc36a19fa7193d648c271f37Image layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1793059200' |
| ENV DEBIAN_FRONTEND=noninteractive |
| /bin/sh -c echo "deb http://deb.debian.org/debian trixie-backports main contrib non-free" > /etc/apt/sources.list.d/backports.list |
| /bin/sh -c useradd -m -s /bin/bash debian && mkdir -p /etc/sudoers.d && echo "debian ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/debian && chmod 0440 /etc/sudoers.d/debian |
| ARG CACHE_DATE |
| |1 CACHE_DATE=1970-01-01 /bin/sh -c apt-get update && apt-get dist-upgrade -y && apt-get install -y --no-install-recommends curl ca-certificates git openssh-client sudo less && rm -rf /var/lib/apt/lists/* |
| ENV DEBIAN_FRONTEND=noninteractive |
| /bin/sh -c echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01no-recommends && echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf.d/01no-recommends |
| /bin/sh -c apt-get update && apt-get install -y jq gh glab ripgrep && echo apt 1 done =============================================== && apt-get install -y ansible ansible-lint && echo apt ansible done =============================================== && apt-get install -y python3 python-is-python3 python3-git python3-loguru python3-loguru python3-pynetbox python3-openpyxl python3-py python3-pytest python3-pydantic python3-pyinotify && echo apt python1 done =============================================== && apt-get install -y python3-git python3-loguru && apt-get install -y pre-commit-hooks pre-commit && echo apt python2 done =============================================== && apt-get install -y --no-install-recommends debos less pipx && echo apt debos pipx done =============================================== && pipx install uv && ln -s /root/.local/bin/uv /usr/local/bin/uv && apt-get clean && rm -rf /var/lib/apt/lists/* |
| USER debian |
| WORKDIR /home/debian |
| ENV DEBIAN_FRONTEND=noninteractive |
| USER debian |
| WORKDIR /home/debian |
| /bin/sh -c mkdir -p ~/.ssh && ssh-keyscan -T 5 github.com >> ~/.ssh/known_hosts 2>/dev/null || true |
| /bin/sh -c curl -fsSL https://opencode.ai/install | bash |
| ENV PATH="/home/debian/.opencode/bin:${PATH}" |
| /bin/sh -c mkdir -p ~/.local/share/opencode ~/.config/opencode |
Labels
| Key | Value |
|---|---|
| io.buildah.version | 1.39.3 |
Annotations
| Key | Value |
|---|---|
| org.opencontainers.image.base.digest | sha256:b4b48af6f0c553a1c8d5bc2458918aea9e42e00ad790ba3fc7633029c3489512 |
| org.opencontainers.image.base.name | localhost/trixie-dev:latest |
Details
2026-10-30 07:20:06 +00:00
Versions (4)
View all
Container
0
OCI / Docker
linux/amd64
617 MiB
latest
2026-11-06
sha-01035d63a65d
2026-10-30
sha-4d9e67565062
2026-10-30
sha-dbc814792643
2026-10-30