cloudaxe-opencode/packages/opencode/Dockerfile

18 lines
593 B
Text
Raw Normal View History

2025-12-13 20:01:59 +01:00
FROM alpine AS base
2025-11-21 22:53:47 -05:00
# 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}
2025-12-11 15:47:56 +00:00
RUN apk add libgcc libstdc++ ripgrep
2025-12-13 20:01:59 +01:00
FROM base AS build-amd64
COPY dist/opencode-linux-x64-baseline-musl/bin/opencode /usr/local/bin/opencode
FROM base AS build-arm64
COPY dist/opencode-linux-arm64-musl/bin/opencode /usr/local/bin/opencode
ARG TARGETARCH
FROM build-${TARGETARCH}
2025-11-21 23:47:53 -05:00
RUN opencode --version
ENTRYPOINT ["opencode"]