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 && \ git checkout $NVM_VERSION && \
source $BASH_PATH/.nvm/nvm.sh && \ source $BASH_PATH/.nvm/nvm.sh && \
nvm install $NODE_VERSION && \ nvm install $NODE_VERSION && \
npm install -g hexo-cli && \ npm install -g hexo-cli
npm install hexo-renderer-jade@0.3.0 --save && \
npm install hexo-renderer-stylus --save
RUN mkdir /logs RUN mkdir /logs

View File

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