build(devcontainer): use dynamic workspace folder name
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 1m33s
CI/CD Pipeline / build-and-deploy (push) Successful in 1m39s

This commit is contained in:
严浩
2025-11-10 12:53:33 +08:00
parent 3033a8a707
commit f757b70174
2 changed files with 3 additions and 2 deletions

View File

@@ -93,4 +93,5 @@ RUN sh -c "$(curl -L -o - https://github.com/deluan/zsh-in-docker/releases/downl
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.zshrc" SHELL="$(which zsh)" zsh - \ RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.zshrc" SHELL="$(which zsh)" zsh - \
&& pnpm --version \ && pnpm --version \
# /home/usr_vscode/.config/pnpm/rc # /home/usr_vscode/.config/pnpm/rc
&& mkdir -p /home/usr_vscode/.pnpm-store \
&& pnpm config --global set store-dir /home/usr_vscode/.pnpm-store && pnpm config --global set store-dir /home/usr_vscode/.pnpm-store

View File

@@ -128,6 +128,6 @@
"postAttachCommand": /* */ "echo '开发环境已就绪!${containerWorkspaceFolder}'", "postAttachCommand": /* */ "echo '开发环境已就绪!${containerWorkspaceFolder}'",
// "updateRemoteUserUID": true, // "updateRemoteUserUID": true,
"waitFor": "updateContentCommand", "waitFor": "updateContentCommand",
"workspaceMount": "source=${localWorkspaceFolder},target=/wrkspc,type=bind,consistency=delegated", "workspaceMount": "source=${localWorkspaceFolder},target=/${localWorkspaceFolderBasename},type=bind,consistency=delegated",
"workspaceFolder": "/wrkspc" "workspaceFolder": "/${localWorkspaceFolderBasename}"
} }