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
832c6343fd
commit
14c2d163d7
@ -4,7 +4,7 @@ MAINTAINER Newnius <newnius.cn@gmail.com>
|
||||
|
||||
RUN apk --no-cache add git
|
||||
|
||||
RUN npm install hexo-cli -g
|
||||
RUN npm install hexo-cli@3.4.4 -g
|
||||
|
||||
ADD bootstrap.sh /etc/bootstrap.sh
|
||||
|
||||
|
@ -14,13 +14,13 @@ Documents: [Hexo](https://hexo.io/)
|
||||
|
||||
```
|
||||
docker service create \
|
||||
--name hexo \
|
||||
--replicas 1 \
|
||||
--publish 4000:4000 \
|
||||
--env GIT_EMAIL="username@example.com" \
|
||||
--env GIT_NAME="username" \
|
||||
--mount type=bind,source=/path/to/blog,target=/blog \
|
||||
newnius/hexo
|
||||
--name hexo \
|
||||
--replicas 1 \
|
||||
--publish 4000:4000 \
|
||||
--env GIT_EMAIL="username@example.com" \
|
||||
--env GIT_NAME="username" \
|
||||
--mount type=bind,source=/path/to/blog,target=/blog \
|
||||
quickdeploy/hexo:3.8.0
|
||||
```
|
||||
|
||||
## Notice
|
||||
|
Loading…
Reference in New Issue
Block a user