Docker: adding a file from a parent directory
In my
That file exists as
Does somebody know why and how to do it correctly? |
|||||
|
Unfortunately, (for practical and security reasons I guess), if you want to add/copy local content, it must be located under the same root path than the From the documentation:
EDIT: There's now an option ( |
|||||||||||||
|
You can build the Dockerfile from the parent directory:
|
|||||||||||||||||
|
The solution for those who use composer is to use a volume pointing to the parent folder:
But I'm pretty sure the can be done playing with volumes in Dockerfile. |