how to build docker image from docker-compose code example Example: how to build docker image docker build <Dockerfile path> -t image-name