From d76f02a2341c01b8735a5b8292f393f3136f7de1 Mon Sep 17 00:00:00 2001 From: appleboy Date: Tue, 8 Apr 2025 21:06:52 +0800 Subject: [PATCH] chore: refactor Docker configuration and update exclusion rules - 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 --- .dockerignore | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..d6aa01e --- /dev/null +++ b/.dockerignore @@ -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