19 lines
579 B
Docker
19 lines
579 B
Docker
FROM alpine AS base
|
|
|
|
# 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
|
|
COPY dist/@kilocode/cli-linux-x64-baseline-musl/bin/kilo /usr/local/bin/kilo
|
|
|
|
FROM base AS build-arm64
|
|
COPY dist/@kilocode/cli-linux-arm64-musl/bin/kilo /usr/local/bin/kilo
|
|
|
|
ARG TARGETARCH
|
|
FROM build-${TARGETARCH}
|
|
RUN kilo --version
|
|
ENTRYPOINT ["kilo"]
|