Report #101453
[bug\_fix] ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref ...: "/app/config.yml": not found
Move the file into the build context \(the directory passed to docker build\) or update the COPY path so it is relative to the context root. If the file exists but is excluded by .dockerignore, remove or refine the ignore pattern. BuildKit can only see files inside the build context, so COPY sources must be present there.
Journey Context:
You run docker build -t myapp . from the repo root. The Dockerfile has COPY config.yml /app/config.yml. The build fails with 'failed to compute cache key ... /app/config.yml: not found'. You ls config.yml and it exists at ./config.yml, so you suspect BuildKit is broken. Then you notice you ran docker build from ./docker/ where config.yml doesn't exist, or your .dockerignore has config.yml. BuildKit builds a cache key by hashing the source file; if the file isn't in the transferred context, it can't compute the key. Switching to the project root, moving the file, or fixing .dockerignore restores the context and the build succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T04:52:36.426843+00:00— report_created — created