From 3d2db1471f835bd410ab5a3fac878b72e94ae657 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 17 Jun 2026 10:29:47 +0000 Subject: [PATCH] fixup: keep docker/*.conf and docker/entrypoint.sh in build context Review feedback on PR #10: excluding the whole docker/ directory broke frontend.prod.Dockerfile, which copies docker/nginx.conf and docker/entrypoint.sh into the production nginx image. - Replace docker/ with docker/*.Dockerfile so only the Dockerfiles are removed from the build context. - Restore docker-compose*.yml exclusion. - Correct the header comment to reflect that dev Dockerfiles COPY source subpaths, not the entire repo root. Verified: docker compose -f docker-compose.prod.yml build frontend succeeds and both COPY docker/... steps complete. --- .dockerignore | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index eb88ca4..c826fc0 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,7 @@ # Exclude everything that isn't strictly needed to build or run the dev images. -# The dev Dockerfiles COPY . /app, so without this the image would bloat with -# docs, scripts, git history, etc. +# The dev Dockerfiles COPY source subpaths (frontend/, backend/, gradlew, +# settings.gradle, etc.), so without this the image would bloat with docs, +# scripts, git history, etc. # Build artifacts and caches (mounted as named volumes at runtime) .gradle @@ -49,11 +50,13 @@ scripts/ frontend/src/__tests__ backend/src/test -# Docker-related metadata (not needed inside the running image) +# Docker metadata — Dockerfiles, .dockerignore, and compose files are not +# needed inside the running image. Keep docker/*.conf and docker/entrypoint.sh +# because frontend.prod.Dockerfile copies them into the production nginx image. +docker/*.Dockerfile Dockerfile* .dockerignore docker-compose*.yml -docker/ # Misc *.log