Quantcast
Viewing latest article 18
Browse Latest Browse All 23

Answer by Anshuman Manral for How to include files outside of Docker's build context?

I believe the simpler workaround would be to change the 'context' itself.

So, for example, instead of giving:

docker build -t hello-demo-app .

which sets the current directory as the context, let's say you wanted the parent directory as the context, just use:

docker build -t hello-demo-app ..

Viewing latest article 18
Browse Latest Browse All 23

Trending Articles