mkdocs-server-from-git/entrypoint.sh

10 lines
185 B
Bash
Raw Normal View History

2020-06-10 14:50:00 +00:00
#!/bin/sh
[ -d .git ] || git clone ${MKDOCS_SERVER_GIT_URL} /docs
git pull
pip install -r requirements.txt
mkdocs build -d /site
nginx&
python /hook/docker-hook -c sh /hook/update.sh