Add Dockerfile
This commit is contained in:
+17
@@ -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')"
|
||||
Reference in New Issue
Block a user