- Scaffolded Angular 21 app in frontend/ (standalone, routing, scss) - Multi-stage Dockerfile: node:22-alpine build → nginx:alpine serve - nginx.conf with SPA routing fallback, API proxy, gzip, asset caching - .dockerignore excludes node_modules, dist, .angular, spec files - docker build → PASS, container serves UI on port 80 (HTTP 200) - Final image: 92.9MB (nginx:alpine)
21 lines
470 B
JSON
21 lines
470 B
JSON
{
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "ng serve",
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"preLaunchTask": "npm: start",
|
|
"url": "http://localhost:4200/"
|
|
},
|
|
{
|
|
"name": "ng test",
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"preLaunchTask": "npm: test",
|
|
"url": "http://localhost:9876/debug.html"
|
|
}
|
|
]
|
|
}
|