OrgTJWater

next-tjwater-agent (sha-e8a335d5ba8ea76fdebe5a114a8b84241e7223a4)

Published 2026-08-17 19:47:08 +08:00 by jiang

Installation

docker pull gitea.waternetwork.cn/orgtjwater/next-tjwater-agent:sha-e8a335d5ba8ea76fdebe5a114a8b84241e7223a4
sha256:531c2705c2a841c85bceac7043ef29e03cd7194573561fb4c3dcef06844afe9f

Images

Digest OS / Arch Size
83e45ffd7c linux/amd64 277 MiB

Image Layers ( linux/amd64)

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.version=24.04
ADD file:d938ff3d4eee15d8600de84bf85eac6ecd0f20bc92dfe305dafbff0bdc974c0f in /
CMD ["/bin/bash"]
ARG OPENCODE_VERSION=
ENV DEBIAN_FRONTEND=noninteractive
RUN |1 OPENCODE_VERSION= /bin/sh -c apt-get update && apt-get install -y --no-install-recommends bash ca-certificates curl tar gzip git openssh-client && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 OPENCODE_VERSION= /bin/sh -c set -eux; if [ -n "$OPENCODE_VERSION" ]; then curl -fsSL https://opencode.ai/install | bash -s -- --version "$OPENCODE_VERSION" --no-modify-path; else curl -fsSL https://opencode.ai/install | bash -s -- --no-modify-path; fi; install -m 0755 /root/.opencode/bin/opencode /usr/local/bin/opencode; rm -rf /root/.opencode; raw_version="$(/usr/local/bin/opencode --version 2>/dev/null | tr -d '\r' | sed -n '1p')"; APP_VERSION="$(printf '%s\n' "$raw_version" | awk '{print $NF}')"; if [ -z "$APP_VERSION" ]; then APP_VERSION="unknown"; fi; echo "APP_VERSION=${APP_VERSION}" > /tmp/app_version.env # buildkit
WORKDIR /workspace
ENV HOME=/root
ENV OPENCODE_HOSTNAME=0.0.0.0
ENV OPENCODE_HOST=0.0.0.0
ENV OPENCODE_PORT=4096
ENV APP_VERSION_FILE=/tmp/app_version.env
EXPOSE [4096/tcp]
COPY entrypoint.sh /entrypoint.sh # buildkit
RUN |1 OPENCODE_VERSION= /bin/sh -c chmod 0755 /entrypoint.sh # buildkit
ENTRYPOINT ["/entrypoint.sh"]
USER root
ARG UBUNTU_APT_MIRROR=mirrors.aliyun.com
ARG PYPI_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
ARG PYPI_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn
ARG NPM_REGISTRY=https://registry.npmmirror.com
ENV VIRTUAL_ENV=/opt/venv
ENV PATH=/opt/venv/bin:/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
ENV PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn
ENV UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
ENV BUN_CONFIG_REGISTRY=https://registry.npmmirror.com
RUN |4 UBUNTU_APT_MIRROR=mirrors.aliyun.com PYPI_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple PYPI_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn NPM_REGISTRY=https://registry.npmmirror.com /bin/sh -c sed -i "s|http://archive.ubuntu.com|https://${UBUNTU_APT_MIRROR}|g; s|http://security.ubuntu.com|https://${UBUNTU_APT_MIRROR}|g" /etc/apt/sources.list 2>/dev/null || true && sed -i "s|http://archive.ubuntu.com|https://${UBUNTU_APT_MIRROR}|g; s|http://security.ubuntu.com|https://${UBUNTU_APT_MIRROR}|g" /etc/apt/sources.list.d/*.sources 2>/dev/null || true && apt-get update && apt-get install -y --no-install-recommends curl jq unzip python3 python3-venv && ln -sf /usr/bin/python3 /usr/local/bin/python && mkdir -p /root/.config/pip && printf "[global]\nindex-url = %s\ntrusted-host = %s\n" "$PIP_INDEX_URL" "$PIP_TRUSTED_HOST" > /root/.config/pip/pip.conf && python3 -m venv "$VIRTUAL_ENV" && pip install --index-url "$PIP_INDEX_URL" --trusted-host "$PIP_TRUSTED_HOST" uv pip setuptools wheel requests httpx pydantic python-dotenv rich ipython pytest && ln -s "$VIRTUAL_ENV/bin/uv" /usr/local/bin/uv && rm -rf /var/lib/apt/lists/* # buildkit
COPY /usr/local/bin/bun /usr/local/bin/bun # buildkit
WORKDIR /app
COPY /app/node_modules ./node_modules # buildkit
COPY /app/.opencode/node_modules ./.opencode/node_modules # buildkit
COPY package.json bun.lock ./ # buildkit
COPY tsconfig.json opencode.json README.md .gitignore ./ # buildkit
COPY src ./src # buildkit
COPY .opencode ./.opencode # buildkit
RUN |4 UBUNTU_APT_MIRROR=mirrors.aliyun.com PYPI_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple PYPI_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn NPM_REGISTRY=https://registry.npmmirror.com /bin/sh -c bun run check # buildkit
WORKDIR /app
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=8787
COPY entrypoint.sh /entrypoint.sh # buildkit
RUN |4 UBUNTU_APT_MIRROR=mirrors.aliyun.com PYPI_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple PYPI_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn NPM_REGISTRY=https://registry.npmmirror.com /bin/sh -c chmod +x /entrypoint.sh # buildkit
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE [8787/tcp]
HEALTHCHECK &{["CMD-SHELL" "curl --fail --silent --show-error \"http://127.0.0.1:${PORT}/health\" >/dev/null || exit 1"] "30s" "5s" "1m0s" "0s" '\x03'}
CMD ["bun" "src/server.ts"]

Labels

Key Value
org.opencontainers.image.version 24.04
Details
Container
2026-08-17 19:47:08 +08:00
0
OCI / Docker
Versions (2) View all