Closed soroshsabz closed 3 years ago
Ok, thanks to BMitch my problem is in dockerignore file that ignore wrong files (ignore files match with app.publish)
In my environment my mistake was to use an absolute path as the source for the COPY
command. Changing it to a relative path, which is the right thing anyways, fixed it.
.dockerignore
was not the culprit in my case.
ITNOA
Hi,
I have below project structure
And I have one directory in
bin directory
that name isapp.publish
. And my Dockerfile is like belowAfter I run below command to build image from this docker file
I got below error
My question is why I got this error? and how to resolve it?
I use
Docker Engine Community 20.10.6
onWindows 10 20H2 19042.964
I write this problem in Docker build failed to compute cache key too.
---Update:
I see docker - failed to compute cache key: not found - runs fine in visual studio and some internal links but does not found any useful things.
I am binging my problem and find some same problem like Dockerfile can’t copy specified local directory & file or Windows Docker Dockerfile COPY file inside folder
Thanks