Dockerfile 579 B

123456789101112131415161718
  1. FROM alpine AS base
  2. # Disable the runtime transpiler cache by default inside Docker containers.
  3. # On ephemeral containers, the cache is not useful
  4. ARG BUN_RUNTIME_TRANSPILER_CACHE_PATH=0
  5. ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=${BUN_RUNTIME_TRANSPILER_CACHE_PATH}
  6. RUN apk add libgcc libstdc++ ripgrep
  7. FROM base AS build-amd64
  8. COPY dist/@kilocode/cli-linux-x64-baseline-musl/bin/kilo /usr/local/bin/kilo
  9. FROM base AS build-arm64
  10. COPY dist/@kilocode/cli-linux-arm64-musl/bin/kilo /usr/local/bin/kilo
  11. ARG TARGETARCH
  12. FROM build-${TARGETARCH}
  13. RUN kilo --version
  14. ENTRYPOINT ["kilo"]