This commit is contained in:
yangyu 2018-07-21 10:59:34 +08:00
parent 0cc99addf9
commit 385148c548
2 changed files with 4 additions and 7 deletions

View File

@ -16,9 +16,7 @@ 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 hexo-renderer-jade@0.3.0 --save && \
npm install hexo-renderer-stylus --save
npm install -g hexo-cli
RUN mkdir /logs

View File

@ -5,10 +5,9 @@ if [ ! -e /hexo ]; then
git clone -b $BRANCH $REPOSITORY hexo;
fi
if [ -e /hexo ]; then
rm -rf /hexo;
cd /;
git clone -b $BRANCH $REPOSITORY hexo;
if [ -e /hexo/install.sh ]; then
cd /hexo;
sh ./install.sh;
fi