Step 3: Build Docker Image

Build docker image from Dockerfile

A docker image is one of the two main artifacts that result from the CI/CD build process (the other one is a helm chart). The docker image incapsulates all application software dependencies.

To build Docker image you can use the build-harness or native tools of the CI/CD platform.

Dependency

None

Examples

Build Docker Image with Codefresh

version: '1.0'
steps:
  build_image:
    title: Build image
    type: build
    description: Build Dockerfile for application
    image_name: example/app
    dockerfile: Dockerfile