Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 712 Bytes

local.md

File metadata and controls

35 lines (23 loc) · 712 Bytes

Local development

To speed up the build, you should consider commenting out the git-revision-date-localized and minify plugin in mkdocs.yml

Build image

docker build -t lsio/documentation -f Dockerfile .

Run image

With docs from buildtime

docker run --rm --name=docs -p 8000:8000 lsio/documentation

With docs from runtime

docker run --rm --name=docs -p 8000:8000 -v $PWD:/app/mkdocs lsio/documentation

With watching at runtime

docker run --rm --name=docs -p 8000:8000 -v $PWD:/app/mkdocs lsio/documentation -a 0.0.0.0:8000 --dirty

With custom port

docker run --rm --name=docs -p 9999:9999 lsio/documentation -a 0.0.0.0:9999