Add Oh My Pi and improve dev container config
- Install @oh-my-pi/pi-coding-agent and move Go binaries to /usr/local/bin - Add omp-data volume and make web port configurable via PORT_WEB - Replace aider self-check with omp in Makefile - Harden entrypoint: avoid exporting API keys to SSH env and overwrite mounted public key into authorized_keys - Add .dockerignore, simplify .env.example, and document omp in README
This commit is contained in:
@@ -20,10 +20,11 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
RUN curl -fsSL https://bun.sh/install | bash
|
||||
RUN curl -fsSL https://go.dev/dl/go1.24.4.linux-amd64.tar.gz | tar -C /usr/local -xzf - \
|
||||
&& go install golang.org/x/tools/gopls@latest \
|
||||
&& go install github.com/go-delve/delve/cmd/dlv@latest
|
||||
&& go install github.com/go-delve/delve/cmd/dlv@latest \
|
||||
&& mv /root/go/bin/* /usr/local/bin/
|
||||
|
||||
# 4. 全局安装 AI 工具
|
||||
RUN bun install -g opencode-ai
|
||||
# 4. 全局安装 AI 工具 (opencode + oh-my-pi)
|
||||
RUN bun install -g opencode-ai @oh-my-pi/pi-coding-agent
|
||||
|
||||
# 5. SSH & 目录预设 (为 Zed 准备)
|
||||
RUN ssh-keygen -A && \
|
||||
|
||||
Reference in New Issue
Block a user