diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2d584af..1a110f3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,23 +1,11 @@ { - "name": "Go Dev Environment", - "build": { - "dockerfile": "Dockerfile", - "context": ".." - }, - "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" - } \ No newline at end of file + "name": "简单开发容器", + "image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04", + "forwardPorts": [3000, 8080], + "containerEnv": { + "NODE_ENV": "development" + }, + "remoteUser": "vscode", + "postCreateCommand": "echo '容器创建完成'", + "runArgs": ["--network=host"] +} \ No newline at end of file