Speed up scratch image builds with publish-first contexts
This commit is contained in:
@@ -31,6 +31,8 @@ Setup scripts validate prerequisites, build solutions and Docker images, and lau
|
||||
|
||||
The scripts will check for required tools (dotnet 10.x, node 20+, npm 10+, docker, git), warn about missing hosts file entries, and copy `.env` from the example if needed. See the manual steps below for details on each stage.
|
||||
|
||||
On Windows and Linux, the backend image builder now publishes each selected .NET service locally and builds the hardened runtime image from a small temporary context. That avoids repeatedly streaming the whole monorepo into Docker during scratch setup.
|
||||
|
||||
### Quick validation + demo seed (first-run path)
|
||||
|
||||
```powershell
|
||||
@@ -197,6 +199,18 @@ dotnet test src\Scanner\StellaOps.Scanner.sln
|
||||
./scripts/build-all-solutions.sh --test
|
||||
```
|
||||
|
||||
### Targeted backend image rebuilds
|
||||
|
||||
```powershell
|
||||
.\devops\docker\build-all.ps1 -Services notify-web,advisory-ai-web
|
||||
```
|
||||
|
||||
```bash
|
||||
SERVICES=notify-web,advisory-ai-web ./devops/docker/build-all.sh
|
||||
```
|
||||
|
||||
Use this after scoped backend changes instead of re-running the full image matrix.
|
||||
|
||||
### Module solution index
|
||||
|
||||
See [`docs/dev/SOLUTION_BUILD_GUIDE.md`](SOLUTION_BUILD_GUIDE.md) for the authoritative list. Current modules (39):
|
||||
|
||||
Reference in New Issue
Block a user