java-mall/.dockerignore

74 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 版本控制相关不打包Git元数据
.git
.gitignore
.gitattributes
.hg
.svn
.gitmodules
# IDE 配置文件避免IDE配置污染镜像
.idea/
*.iml
*.iws
*.ipr
.vscode/
*.sublime-*
.gradle/
build/
# 构建产物仅保留最终JAR排除中间产物
target/classes/
target/test-classes/
target/maven-status/
target/generated-sources/
target/generated-test-sources/
!target/*.jar # 例外保留打包好的JAR包
!target/*.war # 若使用WAR打包
# 本地配置文件(防止开发环境配置泄露到生产镜像)
*.properties
*.yml
*.yaml
!src/main/resources/application-prod.yml # 例外:保留生产环境配置
!src/main/resources/bootstrap-prod.yml
# 日志和临时文件
logs/
*.log
*.tmp
*.bak
tmp/
temp/
# 文档和说明文件(减小镜像体积)
*.md
*.txt
*.docx
*.pdf
docs/
examples/
README*
CHANGELOG*
# 敏感信息文件
*.pem
*.key
*.cert
*.pfx
*.secret
*.env
*.local
# 脚本文件(运行镜像不需要源脚本)
*.sh
*.bat
*.py
!docker-entrypoint.sh # 例外:若有自定义启动脚本则保留
# 其他无关文件
.DS_Store
Thumbs.db
*.zip
*.tar.gz
*.tar
*.gz