Languages

Go .dockerignore

.dockerignore for languages projects

View on GitHub

.dockerignore Content

# ============================================================================
# Created by https://dockerignore.com/
# LANGUAGE-SPECIFIC TEMPLATE for Go
# Website: https://go.dev/
# Repository: https://github.com/golang/go
# ============================================================================

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: LANGUAGE-SPECIFIC TEMPLATE
# • PURPOSE: Core Go language patterns for Docker builds
# • DESIGN PHILOSOPHY: Contains only Go-specific patterns (no security patterns)
# • COMBINATION GUIDANCE: Combine with framework or common templates as needed
# • SECURITY CONSIDERATIONS: Security patterns not included (use common/security.dockerignore)
# • BEST PRACTICES: Always combine with security template for production use
# • OFFICIAL SOURCES: Go community patterns and best practices

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# BUILD ARTIFACTS AND OUTPUT
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
**/_output/
**/out/
*.bench.out
*.block.out
*.cpu.out
*.mem.out
*.mutex.out
*.pprof.out
*.test.out
*.trace.out

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# TESTING AND COVERAGE
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
**/__coverage__/

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# OTHER
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
**/.gocache/
**/go/pkg/include/
**/go/pkg/mod/
**/go/pkg/sumdb/
**/go/pkg/tool/
**/pkg/
**/vendor/
*.bench
*.bench.bin
*.bench.exe
*.block.prof
*.cov
*.cover
*.coverprofile
*.cpu.prof
*.exe~
*.mem.prof
*.mutex.prof
*.pprof
*.pprof.bin
*.pprof.gz
*.prof
*.spec.go
*.test
*.test.bin
*.test.exe
*.test.go
*.trace
go.mod~
go.sum~
go.work
go.work.sum

Note: This file is fetched from GitHub and cached for 7 days.