Docker build: Cloning remote repository instead of copying build context
2 min readJan 10, 2021
Understanding build context
Build context is the files and the directories under the PATH or URL which the Dockerfile
is in.
Build context is the files that are used by Dockerfile to create the image. It can be a PATH or a URL. Dockerfile
should be in the build context. It is not possible to use…