Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
706 B · 24 lines
Dockerfile
12345678910111213141516171819202122232425ARG REGISTRY=ghcr.io/anomalycoFROM ${REGISTRY}/build/base:24.04
SHELL ["/bin/bash", "-lc"]
ARG NODE_VERSION=24.4.0ARG BUN_VERSION=1.4.2
ENV BUN_INSTALL=/opt/bunENV PATH=/opt/bun/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN set -euo pipefail; \ arch=$(uname -m); \ node_arch=x64; \ if [ "$arch" = "aarch64" ]; then node_arch=arm64; fi; \ curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${node_arch}.tar.xz" \ | tar -xJf - -C /usr/local --strip-components=1; \ corepack enable
RUN set -euo pipefail; \ curl -fsSL https://bun.sh/install | bash -s -- "bun-v${BUN_VERSION}"; \ bun --version; \ node --version; \ npm --version