From a735bf12cdf76e457f7c9bc6e565219426ff4e05 Mon Sep 17 00:00:00 2001 From: James Cox Date: Wed, 25 Mar 2026 20:25:10 -0500 Subject: [PATCH] chore(packaging): simplify dockerignore to a denylist - Docker packaging: - replace the fragile deny-all plus allowlist dockerignore pattern with a direct denylist of irrelevant and generated paths - exclude the legacy booklore-ui symlink, frontend build caches and outputs, and backend build artifacts from the image context - Why: - the previous pattern made every rename and every new Docker input easy to miss, which is how the frontend path fell out of the build context - the simpler denylist keeps the Dockerfile as the primary source of truth for included files - Validation: - verify the Dockerfile inputs remain outside the denylist - local docker image validation was not run because the Docker daemon is unavailable in this environment --- .dockerignore | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.dockerignore b/.dockerignore index 0c7fe77d8..50f67160d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,14 +1,19 @@ -** -!Dockerfile -!.dockerignore -!booklore-api/** -!frontend/** -!packaging/docker/** +.git +.github +.yarn +assets +deploy +docs +scratch +tools +booklore-ui -frontend/node_modules -frontend/dist +frontend/.yarn frontend/.angular +frontend/dist +frontend/node_modules frontend/test-results +frontend/tmp -booklore-api/build booklore-api/.gradle +booklore-api/build