mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 16:41:55 +00:00
update hexo
This commit is contained in:
parent
b1af49988d
commit
57fd80c461
@ -8,4 +8,6 @@ RUN npm install hexo-cli -g
|
|||||||
|
|
||||||
ADD bootstrap.sh /etc/bootstrap.sh
|
ADD bootstrap.sh /etc/bootstrap.sh
|
||||||
|
|
||||||
|
WORKDIR /blog
|
||||||
|
|
||||||
CMD ["/etc/bootstrap.sh", "development"]
|
CMD ["/etc/bootstrap.sh", "development"]
|
||||||
|
@ -5,8 +5,8 @@ git config --global user.email $GIT_EMAIL
|
|||||||
git config --global user.name $GIT_NAME
|
git config --global user.name $GIT_NAME
|
||||||
|
|
||||||
# init hexo if dir is empty
|
# init hexo if dir is empty
|
||||||
if ! [ "$(ls -A blog)" ]; then
|
if ! [ "$(ls -A ./ )" ]; then
|
||||||
hexo init blog && npm install blog
|
hexo init && npm install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# run hexo as production / developemnt mode
|
# run hexo as production / developemnt mode
|
||||||
|
Loading…
Reference in New Issue
Block a user