mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 08:31: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
|
||||
|
||||
WORKDIR /blog
|
||||
|
||||
CMD ["/etc/bootstrap.sh", "development"]
|
||||
|
@ -5,8 +5,8 @@ git config --global user.email $GIT_EMAIL
|
||||
git config --global user.name $GIT_NAME
|
||||
|
||||
# init hexo if dir is empty
|
||||
if ! [ "$(ls -A blog)" ]; then
|
||||
hexo init blog && npm install blog
|
||||
if ! [ "$(ls -A ./ )" ]; then
|
||||
hexo init && npm install
|
||||
fi
|
||||
|
||||
# run hexo as production / developemnt mode
|
||||
|
Loading…
Reference in New Issue
Block a user