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
This commit is contained in:
James Cox
2026-04-22 17:26:41 -04:00
committed by Zach Yale
parent 00f116a474
commit a735bf12cd
+14 -9
View File
@@ -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