h5ai is a modern web server index. This docker image makes it trivially easy to spin up a webserver and start sharing your files through the web.
See also the demo directory.
This docker image is available as an automated build on Docker Hub, so there's no setup required. Using this image for the first time will start a download automatically. Further runs will be immediate, as the image will be cached locally.
The recommended way to run this container looks like this:
$ docker run -it --rm -p 80:80 -v `pwd`:/var/www clue/h5aiYou can now point your webbrowser to this URL:
http://localhost/
This is a rather common setup following docker's conventions:
-itwill run an interactive session that can be terminated with CTRL+C--rmwill run a temporary session that will make sure to remove the container on exit-v {AnyDirectory}:/var/wwwwill mount the given directory as the base directory for the browsable directory index-p {OutsidePort}:80will bind the webserver to the given outside portclue/h5aithe name of this docker image