Circleci cli tool in custom docker

we are building a docker image to run the tests

inside the circleci.yaml we call something similar to docker run pytest

now the circleci cli tool is not present in the docker image that we build to run tests.

how can we install/inject/mount this circleci cli in our custom docker image?

Looks like there are install instructions here.