Merge branch 'main' of https://git.quodatum.duckdns.org/apb/ai-code
This commit is contained in:
commit
e0480bb53c
5 changed files with 165 additions and 63 deletions
|
|
@ -28,9 +28,11 @@ ENV PATH="$BUN_INSTALL/bin:$PATH"
|
|||
RUN curl -fsSL https://bun.sh/install | bash
|
||||
|
||||
# use bun for node, npx
|
||||
RUN cd /usr/local/bin && \
|
||||
RUN ( \
|
||||
cd /usr/local/bin && \
|
||||
echo '#!/bin/sh' %3E npx && echo 'exec bunx "$@"' >> npx && chmod +x npx && \
|
||||
echo '#!/bin/sh' %3E node && echo 'exec bun "$@"' >> node && chmod +x node
|
||||
echo '#!/bin/sh' %3E node && echo 'exec bun "$@"' >> node && chmod +x node \
|
||||
)
|
||||
|
||||
|
||||
# --- NEW SECTION: RUST SETUP ---
|
||||
|
|
@ -48,13 +50,13 @@ RUN cargo install agent-browser && \
|
|||
|
||||
# --- NEW SECTION: GO SETUP ---
|
||||
# 6. Install Go (Latest Stable)
|
||||
# We target 'linux-arm64' because you are on Apple Silicon (M3).
|
||||
#ARG GO_VER=1.26.1
|
||||
#ARG ARCH=amd64
|
||||
#RUN curl -OL https://golang.org/dl/go${GO_VER}.linux-${ARCH}.tar.gz && \
|
||||
# tar -C /usr/local -xzf go${GO_VER}.linux-${ARCH}.tar.gz && \
|
||||
# rm go${GO_VER}.linux-${ARCH}.tar.gz
|
||||
#ENV PATH="/usr/local/go/bin:$PATH"
|
||||
|
||||
ARG GO_VER=1.26.1
|
||||
ARG ARCH=amd64
|
||||
RUN curl -OL https://golang.org/dl/go${GO_VER}.linux-${ARCH}.tar.gz && \
|
||||
tar -C /usr/local -xzf go${GO_VER}.linux-${ARCH}.tar.gz && \
|
||||
rm go${GO_VER}.linux-${ARCH}.tar.gz
|
||||
ENV PATH="/usr/local/go/bin:$PATH"
|
||||
|
||||
|
||||
# 6a basex https://files.basex.org/releases/12.2/BaseX122.zip
|
||||
|
|
@ -74,49 +76,7 @@ ENV PATH="/root/.opencode/bin:$PATH"
|
|||
|
||||
# 9. CONFIG PART 1: Hardware/Providers (opencode.json)
|
||||
# Maps your local ports to providers.
|
||||
RUN mkdir -p /root/.config/opencode && \
|
||||
cat <<EOF > /root/.config/opencode/opencode.json
|
||||
{
|
||||
"plugin": [],
|
||||
"theme": "system",
|
||||
"model": "halo/qwen3-coder-next:latest",
|
||||
"small_model": "halo/gemma3:4b",
|
||||
"provider": {
|
||||
"halo": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "(local)",
|
||||
"options": { "baseURL": "http://host.docker.internal:11434/v1" },
|
||||
"models": { "hf.co/unsloth/GLM-4.7-Flash-GGUF:Q6_K": { "name": "glm4.7" },
|
||||
"hf.co/LiquidAI/LFM2-24B-A2B-GGUF:Q8_0": { "name": "lfm2" },
|
||||
"qwen3-coder-next:latest": { "name": "qwen3" },
|
||||
"gemma3:4b": {"name": "Gemma"}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"server": {
|
||||
"port": 4096,
|
||||
"hostname": "0.0.0.0",
|
||||
"mdns": true,
|
||||
"cors": ["https://example.com"]
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
# 10. CONFIG PART 2: Agent Brains (oh-my-opencode.json)
|
||||
# Maps Agent Roles to Providers.
|
||||
RUN cat <<EOF > /root/.config/opencode/oh-my-opencode.json
|
||||
{
|
||||
"agents": {
|
||||
"Sisyphus": { "model": "halo/glm47" },
|
||||
"Oracle": { "model": "halo/lfm2" },
|
||||
"Librarian": { "model": "halo/glm47" },
|
||||
"Hephaestus": { "model": "halo/qwen3" }
|
||||
},
|
||||
"disabled_agents": ["multimodal-looker"],
|
||||
"confirm_dangerous_actions": false
|
||||
}
|
||||
EOF
|
||||
|
||||
#USER 1000:1000
|
||||
WORKDIR /workspace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue