Languages
Kotlin .dockerignore
.dockerignore for languages projects
.dockerignore Content
# ============================================================================
# Created by https://dockerignore.com/
# LANGUAGE-SPECIFIC TEMPLATE for Kotlin
# Website: https://kotlinlang.org/
# Repository: https://github.com/JetBrains/kotlin
# ============================================================================
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: LANGUAGE-SPECIFIC TEMPLATE
# • PURPOSE: Kotlin-specific ignore patterns for Docker builds
# • DESIGN PHILOSOPHY: Contains only Kotlin-specific patterns (no security patterns)
# • COMBINATION GUIDANCE: Combine with framework or common templates as needed
# • SECURITY CONSIDERATIONS: Does NOT include security patterns (use common/security.dockerignore)
# • BEST PRACTICES: Combine with security template for complete protection
# • OFFICIAL SOURCES: Kotlin community patterns and best practices
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# KOTLIN BUILD ARTIFACTS & OUTPUT
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Kotlin build artifacts, compiled outputs, and distribution packages
**/.gradle/buildOutputCleanup/
**/.gradle/wrapper/dists/
**/android/
**/docs/
**/dokka/
**/javadoc/
**/lint-results/
**/lint/
**/proguard/
*.aab
*.ap_
*.apk
*.dex
*.ear
*.jar
*.kotlin_builtins
*.kotlin_module
*.war
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# KOTLIN DEVELOPMENT & TOOLING
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Kotlin development tools, cache, and configuration files
**/.gradle/
**/.gradle/daemon/
**/.gradle/native/
**/.idea_modules/
**/.jacoco/
**/.kapt/
**/.kotlin/
**/.kotlinc/
gradle.properties
gradle/verification-metadata.xml
gradle/wrapper/gradle-wrapper.properties
gradlew
gradlew.bat
local.properties
proguard-rules.pro
settings.gradle.kts
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# EXCEPTIONS (FILES TO INCLUDE)
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Important files that should NOT be excluded from Docker builds
!gradle/wrapper/gradle-wrapper.jar