Files
kilocode/packages/opencode/Dockerfile
Igor Šćekić e1ead115ae ci(publish): check release assets against recorded digests before publishing
sign-cli-windows records the digest of each signed zip it uploads and gives the checksum file their digests. Before un-drafting, publish downloads the draft and compares every asset with the build manifest, the signed zip digests and the rewritten checksum file. The conda build takes its digests from the checked manifest and the signed zip digests and compares the release download with them. attest-cli checks the SBOM digest the manifest records, and the QEMU, BuildKit and Alpine images are pinned by digest.
2026-11-26 21:04:45 +01:00

35 lines
1.4 KiB
Docker

# kilocode_change start - pin the base image by digest (alpine:latest was 3.24 on 2026-11-26)
FROM alpine:3.24@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf AS base
# kilocode_change end
# Disable the runtime transpiler cache by default inside Docker containers.
# On ephemeral containers, the cache is not useful
ARG BUN_RUNTIME_TRANSPILER_CACHE_PATH=0
ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=${BUN_RUNTIME_TRANSPILER_CACHE_PATH}
RUN apk add libgcc libstdc++ ripgrep
FROM base AS build-amd64
# kilocode_change start
COPY dist/@kilocode/cli-linux-x64-baseline-musl/bin/kilo dist/@kilocode/cli-linux-x64-baseline-musl/bin/bwrap /usr/local/bin/
COPY dist/@kilocode/cli-linux-x64-baseline-musl/bin/licenses /usr/local/share/licenses/kilo
# kilocode_change end
FROM base AS build-arm64
# kilocode_change start
COPY dist/@kilocode/cli-linux-arm64-musl/bin/kilo dist/@kilocode/cli-linux-arm64-musl/bin/bwrap /usr/local/bin/
COPY dist/@kilocode/cli-linux-arm64-musl/bin/licenses /usr/local/share/licenses/kilo
# kilocode_change end
ARG TARGETARCH
# kilocode_change start
FROM build-${TARGETARCH} AS openshell
RUN kilo --version
ENTRYPOINT ["kilo"]
COPY script/kilocode/openshell/kilo.json /etc/kilo/kilo.json
ENV KILO_DISABLE_MODELS_FETCH=1 KILO_DISABLE_SESSION_INGEST=1 KILO_DISABLE_PRESENCE=1
# kilocode_change end
FROM build-${TARGETARCH}
RUN kilo --version
ENTRYPOINT ["kilo"]