diff --git a/README.md b/README.md index 5f25418..8cd2ef4 100644 --- a/README.md +++ b/README.md @@ -143,4 +143,17 @@ run darkhttpd without any arguments: ./darkhttpd ``` +## How to run darkhttpd in Docker + +First, build the image. +``` +docker build -t darkhttpd . +``` +Then run using volumes for the served files and port mapping for access. + +For example, the following would serve files from the current user's dev/mywebsite directory on http://localhost:8080/ +``` +docker run -p 8080:80 -v ~/dev/mywebsite:/var/www/htdocs:ro darkhttpd +``` + Enjoy.