diff --git a/hexo/Dockerfile b/hexo/Dockerfile index d443ebe..a7fd2dd 100644 --- a/hexo/Dockerfile +++ b/hexo/Dockerfile @@ -16,7 +16,9 @@ RUN cd $BASH_PATH && \ git checkout $NVM_VERSION && \ source $BASH_PATH/.nvm/nvm.sh && \ nvm install $NODE_VERSION && \ - npm install -g hexo-cli + npm install -g hexo-cli && \ + npm npm install hexo-renderer-jade@0.3.0 --save && \ + npm install hexo-renderer-stylus --save RUN mkdir /logs diff --git a/hexo/start.sh b/hexo/start.sh index dbdb872..e48150d 100644 --- a/hexo/start.sh +++ b/hexo/start.sh @@ -1,10 +1,14 @@ #!/bin/bash if [ ! -e /hexo ]; then - if [ -n "$REPOSITORY" ]; then cd /; git clone -b $BRANCH $REPOSITORY hexo; - fi +fi + +if [ -e /hexo ]; then + rm -rf /hexo; + cd /; + git clone -b $BRANCH $REPOSITORY hexo; fi