mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-11-29 02:17:48 +08:00
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.
35 lines
1.4 KiB
Docker
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"]
|