Build Configuration

Configuration options that are applied at build time.

Build build can be specified as a string containing a path to the build context, or, leave blank and fill out the fields below. Context Either a path to a directory containing a Dockerfile, or a url to a git repository. Dockerfile Alternate Dockerfile. Compose uses an alternate file to build with. A build path must also be specified. Network Set the network containers connect to for the RUN instructions during build. SHM size (eg. '2gb', 10000000) Set the size of the /dev/shm partition for this build’s containers. An integer representing bytes or a string expressing a byte value. Target Build the specified stage as defined inside the Dockerfile.

Arguments

Add build arguments, which are environment variables accessible only during the build process.

Cache from

A list of images that the engine uses for cache resolution.

Labels

Add metadata to the resulting image using Docker labels.