# feature-container-runtime-contract — .dockerignore for the repository-root build context
#
# The docker build context is the repository root, which is the Gradle root. The builder stage needs
# the Gradle build and the code, nothing else: not the documentation, the CI files, the development
# Compose environment or the scripts. So this file lets in only what the build reads (the first
# block), then takes the build noise back out of it (the rest). Rules apply in order and the last
# match wins.

# ---- What the builder reads ------------------------------------------------
# Everything at the top is out, then the Gradle build is let back in: the wrapper, the root build
# scripts and their settings lockfile, gradle/ (wrapper, version catalog, module registry, test-image
# list), the convention plugins, the code-check tool settings and the layer code.
*
!gradlew
!gradlew.bat
!gradle/
!gradle.properties
!settings.gradle
!settings-gradle.lockfile
!build.gradle
!build-logic/
!config/
!src/
# The env contract examples, which were in the context while it was src/. No real .env: see below.
!.env.example
!.env.local.example

# ---- Gradle build output ----------------------------------------------------
# Exclude all module build/ directories; the builder stage produces them inside the container.
**/build/
**/.gradle/
**/bin/

# ---- IDE / editor files -----------------------------------------------------
**/.idea/
**/*.iml
**/.vscode/
**/.project
**/.classpath
**/.settings/

# ---- Environment / secrets (NEVER bake secrets into image layers) -----------
**/.env
**/*.env
**/.env.lane

# ---- OS artifacts -----------------------------------------------------------
**/.DS_Store
**/Thumbs.db

# ---- Test reports and coverage ----------------------------------------------
**/test-results/
**/reports/
**/jacoco/
