Interview Prep/Docker/Build failures and cache problems

`ERROR: failed to solve: failed to compute cache key: "/requirements.txt" not found: not found`

BeginnerTroubleshootingBuild failures and cache problems
Answer

Likely causes → The file isn't in the context root, a .dockerignore pattern, or building from the wrong directory.

Diagnose → docker build -f services/api/Dockerfile services/api vs .

Fix → Align the context with the COPY paths.

Prevent → Document the build context in the Makefile or Compose file.

All Docker questions Roadmap: Docker & containers

More on Build failures and cache problems