steps to write a custom docker image code example Example: how to build docker image docker build <Dockerfile path> -t image-name