Perform the following steps to create a smaller image using the scratch base image:
- Change to the repository directory:
$ cd multistage
- Build the image using the Docker image build command, as shown in the following screenshot:
- Now that the image is successfully built, let's proceed to spin a container from the image we created in the previous step, as shown in the following screenshot: