how to build an image using a dockerfile code example Example: how to build docker image docker build <Dockerfile path> -t image-name