chore: refactor Docker configuration and update exclusion rules
Some checks failed
release-nightly / release-image (push) Has been cancelled

- Add a `.dockerignore` file for Docker configuration - Ignore git-related files and directories - Exclude Dockerfile and `.dockerignore` - Ignore build artifacts including binaries and shared libraries - Add rules for Go-specific files and directories - Exclude testing-related files and folders - Ignore files from IDEs and editors - Exclude OS-specific and temporary files - Ignore documentation files and directories - Add development tools configuration files - Exclude debug files and directories Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
2025-04-08 21:06:52 +08:00
parent b2bde61882
commit d76f02a234

61
.dockerignore Normal file
View File

@@ -0,0 +1,61 @@
# Git
.git
.gitignore
.github/
.gitea/
# Docker
Dockerfile
.dockerignore
# Build artifacts
bin/
dist/
build/
*.exe
*.exe~
*.dll
*.so
*.dylib
# Go specific
vendor/
go.work
# Testing
*_test.go
**/test/
**/tests/
coverage.out
coverage.html
# IDE and editor files
.idea/
.vscode/
*.swp
*.swo
*~
# OS specific
.DS_Store
Thumbs.db
# Temporary files
tmp/
temp/
*.tmp
*.log
# Documentation
docs/
*.md
LICENSE
# Development tools
.air.toml
.golangci.yml
.goreleaser.yml
# Debug files
debug
__debug_bin