补充docker打包和服务的脚本
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user