mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Updated README to match directory conventions
This commit is contained in:
parent
503f57a38e
commit
5bd12d5c2c
13
README.md
13
README.md
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user