docker-build

Build an image from a Dockerfile.

TLDR

Build a docker image using the Dockerfile in the current directory

>_ docker build .
copy

Build a docker image from a Dockerfile at a specified URL

>_ docker build [github.com/creack/docker-firefox]
copy

Build a docker image and tag it

>_ docker build --tag [name:tag] .
copy

Do not use the cache when building the image

>_ docker build --no-cache --tag [name:tag] .
copy

Build a docker image using a specific Dockerfile

>_ docker build --file [Dockerfile] .
copy

Build with custom build-time variables

>_ docker build --build-arg [HTTP_PROXY=http://10.20.30.2:1234] --build-arg [FTP_PROXY=http://40.50.60.5:4567] .
copy

Copied to clipboard
free 100$ digital ocean credit