-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dockerignore
More file actions
69 lines (57 loc) · 1.71 KB
/
Copy path.dockerignore
File metadata and controls
69 lines (57 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Keeps the Docker build context small. Everything listed here is NOT
# copied into the builder, which:
# 1. shrinks upload time to remote builders (depot.dev / Fly).
# 2. lets the `COPY . .` layer's cache survive changes to bench data,
# docs, and tests that don't affect the binary.
#
# The build needs: go.mod, go.sum, and every .go source file imported
# (transitively) from ./cmd/anonde. Everything else is excluded.
# Git metadata
# NOTE: `.git` is intentionally NOT excluded — the Go toolchain reads
# `vcs.revision` from it during `go build`, which becomes the
# `version` field in the telemetry heartbeat payload. Excluding `.git`
# yields an empty version, which the telemetry Worker rejects (400).
.gitignore
.gitattributes
# IDE / editor scratch
.vscode
.idea
*.swp
*.swo
.DS_Store
# Documentation — not part of the build
docs/
*.md
README*
*.svg
# DO keep the license + attribution files in the build context so the
# Dockerfiles' `COPY LICENSE NOTICE /` can bake them into the image — a
# `docker pull` user never sees the repo. These negations re-include specific
# files after the broad `*.md` / `LICENSE` excludes above.
!LICENSE
!NOTICE
# Bench and validation harnesses (vs/, bench/) — large corpora, not at runtime
vs/
bench/
benchmark/
# Test fixtures + test files — Go ignores tests at build, but COPY still
# pulls them and invalidates the cache layer whenever a test changes.
**/testdata/
**/*_test.go
# Self-references and deploy config
Dockerfile.*
docker-compose.yml
.dockerignore
.private/*
# Local scratch dirs (gitignored)
proxy/
compare/
# Examples (not part of the anonde binary)
examples/
# Python venvs and caches from bench tooling
.venv*/
**/__pycache__/
*.pyc
# Build outputs
/out/
/dist/