Here is a one-liner that will create an htpasswd entry without apache installed.
$docker run --rm -ti xmartlabs/htpasswd > htpasswd
This code gives us insight into the number of people who visit our website, where they are from, and what they are clicking on.