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:
@@ -17,8 +17,8 @@ services:
|
||||
- TERM=xterm-256color
|
||||
ports:
|
||||
- "${SSH_PORT:-2222}:22"
|
||||
- "6300:3000"
|
||||
- "6173-6175:5173-5175"
|
||||
- "${PORT_WEB:-6300}:3000"
|
||||
- "6173-6179:5173-5179"
|
||||
volumes:
|
||||
- ${HOST_PROJECT_PATH:-.}:${CONTAINER_WORKSPACE_PATH:-/workspace}:cached
|
||||
# 1. 使用命名卷持久化整个 .ssh 目录
|
||||
@@ -31,6 +31,8 @@ services:
|
||||
# --- 新增:Zed 远程开发缓存 ---
|
||||
- zed-server:/root/.zed_server
|
||||
- zed-share:/root/.local/share/zed
|
||||
# --- 新增:Oh My Pi 配置/记忆/OAuth 登录态持久化 ---
|
||||
- omp-data:/root/.omp
|
||||
stdin_open: true
|
||||
tty: true
|
||||
restart: always
|
||||
@@ -42,3 +44,4 @@ volumes:
|
||||
go-cache:
|
||||
zed-server:
|
||||
zed-share:
|
||||
omp-data:
|
||||
|
||||
Reference in New Issue
Block a user