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