Every docker build sent the whole working tree as its build context, .git and any local build output included, and the image's source archive is made from that context. The new .dockerignore keeps out .git, the output of make build, make run and make asupdate, test binaries, coverage profiles, source archives, local databases, .env and a local Go workspace. Every tracked file stays in, so the format check, the linter, the tests, the build and the source archive read the same files as before. Model: opus-5-5
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Docker does not read .gitignore, and a pattern here matches from the root of
|
||||
# the build context only: a pattern meant for every directory needs `**/`.
|
||||
|
||||
.git
|
||||
|
||||
# Local build and debug output: `make build`, `make run`, `make asupdate`, test
|
||||
# binaries, coverage profiles and source archives.
|
||||
/bin
|
||||
/log.txt
|
||||
/out
|
||||
/pkg/asinfo/asdata.json
|
||||
**/*.tar.zst
|
||||
**/*.test
|
||||
**/*.out
|
||||
**/*.tmp
|
||||
|
||||
# Local databases and secrets. The image carries a source archive of the whole
|
||||
# build context, so these would otherwise ship inside it.
|
||||
**/*.db
|
||||
**/*.db-journal
|
||||
**/*.db-wal
|
||||
**/.env
|
||||
|
||||
# A local Go workspace points at directories outside the build context.
|
||||
/go.work
|
||||
/go.work.sum
|
||||
|
||||
**/.DS_Store
|
||||
Reference in New Issue
Block a user