mkdocs-server-from-git/entrypoint.sh

10 lines
185 B
Bash
Executable File

#!/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