simple-dev

This commit is contained in:
panshuxiao
2025-04-20 10:23:41 +08:00
parent adefecc0bd
commit 0f536583c9

View File

@@ -1,23 +1,11 @@
{
"name": "Go Dev Environment",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
"name": "简单开发容器",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
"forwardPorts": [3000, 8080],
"containerEnv": {
"NODE_ENV": "development"
},
"customizations": {
"vscode": {
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go"
},
"extensions": [
"golang.go",
"ms-vscode.go",
]
}
},
"forwardPorts": [8080],
"postCreateCommand": "go mod tidy",
"remoteUser": "vscode"
}
"remoteUser": "vscode",
"postCreateCommand": "echo '容器创建完成'",
"runArgs": ["--network=host"]
}