From 5a6fdc0efd7de0724db2f76d01a05ea928039590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sat, 8 Nov 2025 16:22:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20Dockerfile=20?= =?UTF-8?q?=E5=92=8C=20devcontainer.json=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=9B=AE=E5=BD=95=E8=B7=AF=E5=BE=84=E4=B8=BA?= =?UTF-8?q?=20/wrkspc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/Dockerfile | 6 +++--- .devcontainer/devcontainer.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index bbbac03..5a86fd7 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -57,8 +57,8 @@ RUN mkdir -p /commandhistory \ && chown -R usr_vscode:usr_vscode /commandhistory # 创建工作目录 -RUN mkdir -p /workspace /home/usr_vscode/.claude \ - && chown -R usr_vscode:usr_vscode /workspace /home/usr_vscode/.claude +RUN mkdir -p /wrkspc /home/usr_vscode/.claude \ + && chown -R usr_vscode:usr_vscode /wrkspc /home/usr_vscode/.claude # 安装 git-delta https://github.com/dandavison/delta/releases RUN ARCH=$(dpkg --print-architecture) && \ @@ -66,7 +66,7 @@ RUN ARCH=$(dpkg --print-architecture) && \ sudo dpkg -i "git-delta_${GIT_DELTA_VERSION}_${ARCH}.deb" && \ rm "git-delta_${GIT_DELTA_VERSION}_${ARCH}.deb" -WORKDIR /workspace +WORKDIR /wrkspc # 切换到非 root 用户 USER usr_vscode diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e6b3078..0c73811 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -110,6 +110,6 @@ "postAttachCommand": "echo 容器已连接: ${containerWorkspaceFolder}", // 连接到容器后执行 // "updateRemoteUserUID": true, "waitFor": "postStartCommand", - "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=delegated", - "workspaceFolder": "/workspace" + "workspaceMount": "source=${localWorkspaceFolder},target=/wrkspc,type=bind,consistency=delegated", + "workspaceFolder": "/wrkspc" }