Password file was generated with htpasswd
utility from apache2-utils
.
Not sure if it is a safe way to provide a file in repo, but this is the simplest way.
Building image
docker build -t <image_name> .
Running container
docker run -d --name <container_name> -p 80:80 <image_name>
In another project at CERN I used to write something using bash. run.sh tool is just a way to run a container in one command. :)
./run.sh