[H-8] Docker build broken and leaky: dev compose release path hardcoded to _build/prod; .dockerignore not honored (context is parent dir) #12
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra#12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
(a)
Dockerfile:87hardcodes/app/_build/prod/rel/mdid_wswhile dev builds emit_build/dev, so the dev compose override cannot build; its runtime command also needs git/SSH absent from the slim runner. (b) compose setscontext: .., and ignore files are only read from the context root orDockerfile.dockerignore— somdid_ws/.dockerignorematches neither and the entire parent workspace (sibling repos, .git, .env) is uploaded as build context.Evidence
Dockerfile:87— hardcoded_build/prodCOPYdocker-compose.yml:7-9—context: ..,dockerfile: mdid_ws/Dockerfiledocker-compose.dev.yml:15-17, 37-45— MIX_ENV dev + runtimemix deps.getImpact
Dev compose unusable; build context leakage of the whole workspace to the Docker daemon.
Fix
ARG MIX_ENVre-declared in the runner stage)Dockerfile.dockerignore(or move it to the actual context root)Line numbers refer to the initial import commit
282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).Verified fixed on main (
1b6216b): Dockerfile release path follows ARG MIX_ENV; .dockerignore at the repo-root context; dev compose uses the dev target (B2).