deploy-only Dockerfile, slice 2 of M4

Three stages: npm build, Go build with the real dist copied over the
placeholder before compiling, distroless/static (nonroot) runtime.
The container listens on :8080 (all interfaces, unlike the localhost
dev default). Verified locally: 16.6 MB image, /, /healthz and /api
all answer. Dev loop unchanged, Docker stays out of it.
This commit is contained in:
Justin Visser 2026-06-11 14:22:21 +02:00
parent 3684488d75
commit 33df4d33eb
2 changed files with 43 additions and 0 deletions

12
.dockerignore Normal file
View file

@ -0,0 +1,12 @@
# Keep the build context small and the image layers cache-friendly:
# nothing here is needed to build the frontend or the binary.
.git
.github
docs
node_modules
web/node_modules
web/dist
web/coverage
dev.sh
Dockerfile
.dockerignore