failed to calculate checksum of ref #4716
-
|
New to Docker. Using Ubuntu 20.04.6LTS. Using docker file "Dockerfile.ubuntu" and ".dockerignore" file in my directory. I realize that the provided Dockerfile is for 22.04, and am hoping that's not my issue. Anyway, getting below error.
This error is received when execute Dockerfile .dockerignore |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
What is your current working directory when executing the |
Beta Was this translation helpful? Give feedback.

What is your current working directory when executing the
docker buildcommand? That is the directory that you are setting as your build context, via the.character at the very end of your command arguments. And that means anyCOPYinstructions in your Dockerfile are relative to that directory. So that directory should contain theaspnetappdirectory that you reference inCOPY aspnetapp/*.csproj .. If you want to specify a different directory as your build context, you should replace the.in yourdocker buildcommand with the path that you do want.