2025-11-22 11:53:47 +08:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
|
|
# 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++
|
2025-11-22 12:47:53 +08:00
|
|
|
ADD ./dist/opencode-linux-x64-baseline-musl/bin/opencode /usr/local/bin/opencode
|
|
|
|
|
RUN opencode --version
|
2025-11-22 12:51:53 +08:00
|
|
|
ENTRYPOINT ["opencode"]
|