docker build [OPTIONS] PATH | URL | -
The docker build
command builds Docker images from a Dockerfile and a "context".
A build's context is the set of files located in the specified PATH
or URL
.
The build process can refer to any of the files in the context. For example, your build can use a COPY
instruction to reference a file in the context.
The URL
parameter can refer to three kinds of resources: Git repositories, pre-packaged tarball contexts and plain text files.