Docker build: 'failed to compute cache key: "/requirements.txt" not found'
@devsingh05▲ 10 net votes
COPY paths are relative to the build context (the directory passed to docker build, usually .), not to the Dockerfile. The file is missing from the context because you ran the build from another folder, compose's build.context points elsewhere, or .dockerignore excludes it (a broad pattern like * or *.txt). Run the build from the project root, or set context and dockerfile explicitly in docker-compose.yml.