Expand .dockerignore to reduce unnecessary cache invalidation
Fixes #1968
The Dockerfile uses COPY . . which copies the entire source tree into the build context. This means any change to files that aren't needed for the build (like .git/, docs/, examples/) still invalidates the Docker layer cache.
This is particularly noticeable with .git/ -- every new commit, branch, or tag causes a full rebuild even though the actual source code hasn't changed.
The fix expands .dockerignore to exclude:
.git/and.gitignoredocs/,examples/, and Markdown files- Editor and CI configs (
.github/,.editorconfig, etc.) - Development-only files (
docker-compose*.yaml,config.dev.yaml) - The
Dockerfileitself
This keeps the build context minimal and focused on what the image actually needs: Go source files, dependencies (go.mod/go.sum), config.docker.yaml, and web/ templates.
@singhvishalkr thanks for the PR!
Could you please run git rebase HEAD~1 --signoff to pass the DCO?
Signed off the commit and force-pushed 0dc9ccfe. The DCO check should rerun on the updated branch.