Updated README to match directory conventions

This commit is contained in:
Miles Elam 2021-04-02 10:03:52 -07:00
parent 503f57a38e
commit 5bd12d5c2c

View File

@ -143,4 +143,17 @@ run darkhttpd without any arguments:
./darkhttpd ./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. Enjoy.