update readme
This commit is contained in:
parent
b7b0f7ae9f
commit
35ba4f8740
1 changed files with 25 additions and 1 deletions
26
README.md
26
README.md
|
@ -1,2 +1,26 @@
|
||||||
# minhttpd
|
# minhttpd
|
||||||
tiny http server, made to mimic* the usability of "python -m http.server"
|
tiny http server, made to mimic* the usability of "python -m http.server"
|
||||||
|
|
||||||
|
by default, will serve from "/var/www" on port 8000, you can mount a volume here or change the path.
|
||||||
|
|
||||||
|
## usage
|
||||||
|
|
||||||
|
### default root
|
||||||
|
```sh
|
||||||
|
docker run --rm -p 8000:8000 -v $(pwd):/var/www arson.pw/minhttpd
|
||||||
|
```
|
||||||
|
|
||||||
|
### custom root
|
||||||
|
```sh
|
||||||
|
docker run --rm -p 8000:8000 -v $(pwd):/tmp arson.pw/minhttpd --chdir /tmp
|
||||||
|
```
|
||||||
|
|
||||||
|
### custom port (method 1)
|
||||||
|
```sh
|
||||||
|
docker run --rm -p 1337:8000 -v $(pwd):/var/www arson.pw/minhttpd
|
||||||
|
```
|
||||||
|
|
||||||
|
### custom port (method 2)
|
||||||
|
```sh
|
||||||
|
docker run --rm -p 1337:1337 -v $(pwd):/var/www arson.pw/minhttpd --port 1337
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue