Interview Prep/CI/CD/GitHub Actions Failures

`Error: buildx failed with: ERROR: failed to solve: failed to compute cache key: "/dist" not found`.

IntermediateTroubleshootingGitHub Actions Failures
Answer

Likely causes → COPY source missing from the build context: not built yet, excluded by .dockerignore, or wrong context path.

Diagnose → ls the context directory in a step before the build; read .dockerignore.

Fix → Build assets first, set context:, and fix .dockerignore.

Prevent → Build the app in a multi-stage Dockerfile.

All CI/CD questions

More on GitHub Actions Failures