Improve devcontainer configuration

- Simplify Dockerfile: use golang:1.24 base, install Node via features
- Add proper port forwarding for Pulse (7655 frontend, 7656 API)
- Add Vue Volar extension for frontend development
- Add start-pulse-dev.sh helper script for auto-starting dev server
- Add FRONTEND_DEV_HOST to containerEnv for proper binding
- Add .env.devcontainer to .gitignore (local override file)
- Update frontend dependencies

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rcourtman 2026-01-01 19:42:01 +00:00
parent 3ea837c727
commit cb99673b7c
6 changed files with 55 additions and 49 deletions

View file

@ -4,12 +4,18 @@
"dockerfile": "Dockerfile",
"context": "."
},
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "20"
}
},
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
"esbenp.prettier-vscode",
"vue.volar"
],
"settings": {
"go.gopath": "/go",
@ -17,7 +23,22 @@
}
}
},
"forwardPorts": [8080, 3000],
"postCreateCommand": "go version && node --version",
"forwardPorts": [7655, 7656],
"portsAttributes": {
"7655": {
"label": "Pulse Frontend",
"onAutoForward": "openBrowser"
},
"7656": {
"label": "Pulse Backend API",
"onAutoForward": "silent"
}
},
"containerEnv": {
"PULSE_DEV_API_HOST": "localhost",
"FRONTEND_DEV_HOST": "0.0.0.0",
"LAN_IP": "localhost"
},
"updateContentCommand": "sudo chown -R vscode:vscode /workspaces/pulse && cd frontend-modern && npm install",
"remoteUser": "vscode"
}