How to run Loki LogCLI inside container?

I want to be able to query from loki using LogCLI : https://grafana.com/docs/loki/latest/getting-started/logcli/

Any ideas how to set it up inside dockerfile?

I found following Dockerfile on the repository,

It can be built by cloning repository,

# clone the repo
git clone https://github.com/grafana/loki.git

# build docker image
cd loki
docker build -t logcli:latest -f cmd/logcli/Dockerfile .