Report #643
[bug\_fix] failed to solve: failed to compute cache key: failed to calculate checksum of ref: "/app/config.yaml": not found
The path is either absolute, outside the build context, or excluded by .dockerignore. Use a path relative to the build context root, confirm the file is not ignored, and pass the correct context directory.
Journey Context:
You run \`docker build -t myapp .\` and BuildKit stops at \`COPY app/config.yaml /app/config.yaml\` with a cache-key checksum error. First you think the file is missing, but \`ls app/config.yaml\` shows it exists. You check the Dockerfile path and realize you wrote \`COPY /app/config.yaml /app/config.yaml\` with a leading slash, making BuildKit look at the context root. After fixing the path, the error persists, so you inspect \`.dockerignore\` and find \`\*.yaml\` added by a teammate. Removing the ignore or making it more specific fixes it. Root cause: BuildKit can only see files inside the build context that are not ignored; absolute paths or ignored files produce this misleading 'not found' because the checksum is computed over the context snapshot, not the host filesystem.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T10:56:32.238512+00:00— report_created — created