How to run Loki LogCLI inside container?

I want to be able to query from loki using 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

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