mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-08 00:51: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 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
|
ADD bootstrap.sh /etc/bootstrap.sh
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@ Documents: [Hexo](https://hexo.io/)
|
|||||||
|
|
||||||
```
|
```
|
||||||
docker service create \
|
docker service create \
|
||||||
--name hexo \
|
--name hexo \
|
||||||
--replicas 1 \
|
--replicas 1 \
|
||||||
--publish 4000:4000 \
|
--publish 4000:4000 \
|
||||||
--env GIT_EMAIL="username@example.com" \
|
--env GIT_EMAIL="username@example.com" \
|
||||||
--env GIT_NAME="username" \
|
--env GIT_NAME="username" \
|
||||||
--mount type=bind,source=/path/to/blog,target=/blog \
|
--mount type=bind,source=/path/to/blog,target=/blog \
|
||||||
newnius/hexo
|
quickdeploy/hexo:3.8.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notice
|
## Notice
|
||||||
|
Loading…
Reference in New Issue
Block a user