This repository has been archived on 2026-04-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
vue-ts-example-2025/.devcontainer/devcontainer.json
T
严浩 1ae6bc1128
CI/CD Pipeline / playwright (push) Successful in 2m17s
CI/CD Pipeline / build-and-deploy (push) Successful in 1m50s
测试最新依赖 / playwright (push) Failing after 47s
测试最新依赖 / build-and-test (push) Failing after 1m48s
chore: update lifecycle scripts paths in devcontainer configuration
2026-03-28 18:07:32 +08:00

39 lines
1.7 KiB
JSON

{
"image": "ghcr.io/yanhao98/h-devcontainer:main",
"runArgs": [
"--hostname=devcontainer-host",
"--name=${localWorkspaceFolderBasename}-devcontainer"
],
"forwardPorts": [4730, 4731, 5901],
"portsAttributes": {
"4730": { "label": "开发服务器端口", "onAutoForward": "notify" },
"4731": { "label": "预览服务器端口", "onAutoForward": "notify" }
},
"containerEnv": {
"TZ": "${localEnv:TZ:Asia/Shanghai}"
},
"customizations": {
"vscode": {
"extensions": ["esbenp.prettier-vscode", "vue.volar"],
"settings": {
// "tasks": { "version": "2.0.0", "tasks": [] },
"github.copilot.chat.codeGeneration.instructions": [
{
"text": "This dev container includes a lightweight Fluxbox based desktop that can be accessed using a VNC viewer or the web. GUI-based commands executed from the built-in VS Code terminal will open on the desktop automatically."
}
]
}
}
},
"mounts": [
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
],
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,consistency=delegated",
// "initializeCommand": "docker pull ghcr.io/yanhao98/h-devcontainer:main;",
"onCreateCommand": "/devcontainer/run-lifecycle-scripts.sh onCreateCommand",
"updateContentCommand": "/devcontainer/run-lifecycle-scripts.sh updateContentCommand",
"postCreateCommand": "/devcontainer/run-lifecycle-scripts.sh postCreateCommand",
"postStartCommand": "/devcontainer/run-lifecycle-scripts.sh postStartCommand",
"postAttachCommand": "/devcontainer/run-lifecycle-scripts.sh postAttachCommand"
}