From 0c4bafd29930b80bec4d87d273050719da64e3d3 Mon Sep 17 00:00:00 2001 From: ted Date: Sun, 12 May 2019 12:28:03 -0700 Subject: [PATCH] add docker run details Doesn't run under py3 :/ Signed-off-by: ted --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a68a1ae..9dc913d 100644 --- a/README.md +++ b/README.md @@ -53,4 +53,12 @@ Please make sure you fork the repo and change the clone URL in the example below mkdocs serve --dev-addr 0.0.0.0:8000 ``` -After these commands, the currently checked out branch is accessible through your favorite browser at http://localhost:8000 +- Docker instructions: + - One-shot run: + ```bash + docker run -v `pwd`:/opt/app/ -w /opt/app/ -p 8000:8000 -it python:2-alpine \ + sh -c "pip install --user mkdocs mkdocs-material markdown-include && \ + /root/.local/bin/mkdocs serve --dev-addr 0.0.0.0:8000" + ``` + +After these commands, the current branch is accessible through your favorite browser at http://localhost:8000