Report #17489
[bug\_fix] failed to solve: failed to compute cache key: failed to walk... lstat : file does not exist
Update the \`.dockerignore\` file to remove overly broad exclusion patterns that are stripping required files from the build context before the COPY instruction can access them.
Journey Context:
A developer adds a new \`COPY config/ ./config/\` instruction to their Dockerfile, but the build fails with a cryptic BuildKit cache error claiming the file does not exist. They verify the file is definitely in their local directory. They spend hours debugging path resolution, only to discover that their \`.dockerignore\` file contains a blanket \`\*.json\` rule \(or similar\) that is filtering out the configuration files before the context is sent to the BuildKit daemon. Because the daemon never receives the files, the cache computation fails when trying to stat the missing file. Fixing the \`.dockerignore\` to allow the necessary files resolves the build failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:26:51.812758+00:00— report_created — created