补充docker打包和服务的脚本
This commit is contained in:
7
docker/Dockerfile.build
Normal file
7
docker/Dockerfile.build
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM hugomods/hugo:exts
|
||||||
|
|
||||||
|
WORKDIR /site
|
||||||
|
|
||||||
|
RUN mkdir -p /build
|
||||||
|
|
||||||
|
ENTRYPOINT [ "hugo", "--minify", "--enableGitInfo", "--destination", "/build" ]
|
||||||
12
docker/Dockerfile.server
Normal file
12
docker/Dockerfile.server
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM hugomods/hugo:exts AS builder
|
||||||
|
|
||||||
|
ARG HUGO_BASEURL=
|
||||||
|
ENV HUGO_BASEURL=${HUGO_BASEURL}
|
||||||
|
|
||||||
|
COPY . /src
|
||||||
|
|
||||||
|
RUN hugo --minify --enableGitInfo
|
||||||
|
|
||||||
|
FROM hugomods/hugo:nginx
|
||||||
|
|
||||||
|
COPY --from=builder /src/public /site
|
||||||
@@ -8,7 +8,7 @@ theme = "hugo-theme-dream"
|
|||||||
[params]
|
[params]
|
||||||
# zenMode = true
|
# zenMode = true
|
||||||
|
|
||||||
avatar = "avatar.jpeg"
|
avatar = "heads/coolapk_emotion_17_tushe.png"
|
||||||
author = "lanyuanxiaoyao"
|
author = "lanyuanxiaoyao"
|
||||||
description = "记录生活"
|
description = "记录生活"
|
||||||
headerTitle = "兰缘小妖的秘密花园"
|
headerTitle = "兰缘小妖的秘密花园"
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user