fix(docker): drop inherited VOLUME /srv/www that caused silent stale deploys

VOLUME ["/srv/www"] created an anonymous volume that docker compose reuses across
container recreation, shadowing a freshly COPY'd SPA bundle with the previous build
— up -d --build exited 0 while serving the old bundle (and poisoned the PWA service
worker's ngsw.json). A child image cannot un-declare an inherited VOLUME, so it must
not be declared: removing it makes the COPY case deterministic and leaves the runtime
bind-mount case unaffected. Also refreshed the README FROM tag v1.0.0 -> v1.6.0.
This commit is contained in:
2026-08-18 17:27:04 -06:00
parent e4f3ba1882
commit bbc588d933
3 changed files with 21 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ The module ships as a ready-to-use Docker base image. Deploying a SPA to a conta
## Container usage
```dockerfile
FROM code.nochebuena.dev/einherjar/spa-server:v1.0.0
FROM code.nochebuena.dev/einherjar/spa-server:v1.6.0
COPY dist/ /srv/www/
```