Report #97723
[bug\_fix] failed to solve: failed to compute cache key: failed to calculate checksum of ref : "": not found
Ensure the file or directory exists in the build context at the path used in COPY/ADD, verify \`.dockerignore\` is not excluding it, and use a path relative to the build context root. Root cause: BuildKit computes cache keys from the content of COPY/ADD sources; if the source is missing from the build context, it cannot calculate the checksum.
Journey Context:
You add \`COPY requirements-dev.txt /app/\` to a Dockerfile, but the repository file is named \`requirements.dev.txt\`. BuildKit emits "failed to compute cache key" instead of a simple file-not-found. You list the context, spot the typo, and rename the COPY source. You also notice \`.dockerignore\` excludes \`\*.dev.txt\`, so you add an exception, and the error disappears.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T04:35:48.697569+00:00— report_created — created