Skip to content

Commit acc0f1f

Browse files
committed
add docker instructions to README.md
1 parent acea0e6 commit acc0f1f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,3 +366,25 @@ Dependency
366366
* bats (for unit tests)
367367
368368
Tested on Ubuntu 14.04/14.10 in bash/zsh.
369+
370+
Docker
371+
==========
372+
373+
* Build
374+
375+
```shell
376+
docker build -t markdown-toc-generator .
377+
```
378+
379+
* Run on URL
380+
381+
```shell
382+
docker run -it markdown-toc-generator https://github.com/ekalinin/envirius/blob/master/README.md
383+
```
384+
385+
* Run on local (need to share volume with docker)
386+
387+
```shell
388+
docker run -it -v /data/ekalinin/envirius:/data markdown-toc-generator /data/README.md
389+
```
390+

0 commit comments

Comments
 (0)