はじめに 以下の構成の際にsample.txtをCOPYしたいというモチベがあったのですが、単純に以下のようにコマンドを実行しても動きませんでした。 parent ├── child1 │ └── Dockerfile └── child2 └── sample.txt # Dockerfile COPY ../child2/sample.txt ./sample.txt# docker buildを行う $pwd ../parent/child1 $ docker build . ERROR: failed to solve: failed to compute cache key: fai…