-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dockerignore
More file actions
55 lines (47 loc) · 1.62 KB
/
Copy path.dockerignore
File metadata and controls
55 lines (47 loc) · 1.62 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
# Ignore temporary files and build artifacts
*.test # Go test binaries
*.out # Go test coverage files
*.o # Object files
*.a # Archive files
/tmp/* # Temporary directories/files
# Ignore the Go module cache and build cache generated locally
# These are typically rebuilt or downloaded within the Docker container
# unless using specific BuildKit cache mounts.
go.sum # go.sum is needed to verify dependencies during go mod download
go.mod # go.mod is needed to determine dependencies
# However, if you copy go.mod/go.sum separately before copying the rest of the code
# in your Dockerfile for caching purposes, you might ignore them in a later COPY step,
# but they must be in the build context initially for the early COPY.
# For simplicity in a basic .dockerignore, they are often NOT ignored here.
# Ignore version control directories and files
.git/
.gitignore
.hg/
.svn/
# Ignore IDE/editor specific files and directories
.idea/
.vscode/
*.swp
*.swo
*.bak
*~
# Ignore operating system specific files
.DS_Store
Thumbs.db
# Ignore configuration files not needed in the final image
# Be careful with this - only ignore files that are strictly for local dev!
.env
config.yaml
config-docker.yml
secrets.json
# Ignore logs and other runtime generated files
*.log
logs/
# Optional: Ignore documentation or example directories not needed for the final build
docs/
examples/
# Optional: Ignore the Dockerfile itself and .dockerignore
# They are sent to the daemon for the build process regardless,
# this just prevents them being accidentally copied into the image.
Dockerfile
.dockerignore