Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

1.4 KB
Raw Blame
# The caller supplies the digest-pinned image and immutable Debian snapshot.
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG APT_SNAPSHOT
RUN printf 'deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/%s/ bullseye main\n' "$APT_SNAPSHOT" > /etc/apt/sources.list \
    && printf 'deb [check-valid-until=no] https://snapshot.debian.org/archive/debian-security/%s/ bullseye-security main\n' "$APT_SNAPSHOT" >> /etc/apt/sources.list \
    && rm -f /etc/apt/sources.list.d/* \
    && apt-get update \
    && apt-get install --yes --no-install-recommends cmake clang pkg-config binutils ca-certificates curl xz-utils \
    && rm -rf /var/lib/apt/lists/* \
    && test "$(getconf GNU_LIBC_VERSION)" = 'glibc 2.31'

# Official checksums: https://nodejs.org/dist/v22.19.0/SHASUMS256.txt
# The policy selects the native archive; host Node binaries are not mounted.
ARG NODE_VERSION
ARG NODE_ARCH
ARG NODE_SHA256
RUN curl --fail --location --retry 3 --proto '=https' --tlsv1.2 \
        "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.xz" \
        --output /tmp/node.tar.xz \
    && printf '%s  /tmp/node.tar.xz\n' "$NODE_SHA256" | sha256sum --check --strict \
    && tar --extract --xz --file /tmp/node.tar.xz --directory /usr/local --strip-components=1 --no-same-owner \
    && rm /tmp/node.tar.xz \
    && test "$(node --version)" = "v${NODE_VERSION}" \
    && npm --version