Builders and Build Options on Nife

Build and Deployment Options are essential to deploy an Application A builders help creating a deployable image.

There are three kinds of builders - dockerfile, buildpacks, and image.

Dockerfile#

The default builder is the dockerfile builder, invoked when there is a dockerfile, and no specific build option is selected. The default builder looks for a Dockerfile in the current directory and uses that to construct the deployable image. It is similar to a simple docker deploy option!

Buildpacks#

Buildpacks are used for a building process that's run entirely in its own container to construct their deployable images. These buildpacks are bundled into a "builder" stack associated with an operating system. They are called to build the specified application. Most commonly, the buildpack derives from standardized Cloud Native Buildpacks. The Buildpacks implicitly run multiple tests to detect if the application can be built. If trials proceed, they run the scripts needed to create an image.

Image#

If a Docker image is already present, then you can use the docker image option and directly upload from the repository.