From 9e6377d1d1ab013429fc51717d01f6359a8798b8 Mon Sep 17 00:00:00 2001 From: Steffen Illium <1+steffen@noreply@steffenillium.de> Date: Sat, 13 Jun 2026 14:03:01 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dab0f7b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM ghcr.io/anomalyco/opencode:latest + +# glibc compat for native binaries +RUN apk add --no-cache gcompat nodejs curl npm + +# Bun runtime (opencode-mem plugin needs it) +ARG BUN_VERSION=1.3.9 +RUN wget -qO /tmp/bun.zip "https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION}/bun-linux-x64.zip" && \ + unzip -o /tmp/bun.zip -d /tmp/ && \ + cp /tmp/bun-linux-x64/bun /usr/local/bin/bun && \ + chmod +x /usr/local/bin/bun && \ + rm -rf /tmp/bun* && \ + bun --version + +# CodeGraph (runs via system node, not its bundled glibc binary) +RUN npm install -g @colbymchenry/codegraph @colbymchenry/codegraph-linux-x64 && \ + node -e "require('@colbymchenry/codegraph')"