Add hash-pinned Dockerfile, .dockerignore, and Gitea CI workflow

Multistage build per policy: a fail-fast lint stage on the pinned
golangci-lint image runs fmt-check and lint, the builder stage reuses
its linter binary (which also forces stage ordering), runs make check,
and builds; the runtime stage is pinned alpine with just the binary.
CI runs docker build . on push with the checkout action pinned by
commit SHA. All image references pinned by sha256 digest with
version/date comments.
This commit is contained in:
2026-07-23 06:42:11 +07:00
parent 7a6adae0d2
commit b4d013cb34
3 changed files with 55 additions and 0 deletions

8
.dockerignore Normal file
View File

@@ -0,0 +1,8 @@
.git
.claude
.DS_Store
sfdupes
files.dat
*.log
*.out
*.test