simple-dev
This commit is contained in:
@@ -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"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user