From 5bd12d5c2c4a49820e2071598ca218422e52181a Mon Sep 17 00:00:00 2001 From: Miles Elam Date: Fri, 2 Apr 2021 10:03:52 -0700 Subject: [PATCH] Updated README to match directory conventions --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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.