aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 985f527..a9d4a49 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,6 +17,24 @@ WORKDIR /app
17RUN /bin/bash -c "source /app/.venv/bin/activate && make html" 17RUN /bin/bash -c "source /app/.venv/bin/activate && make html"
18 18
19 19
20FROM alpine:latest
21
22RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
23
24RUN apk add --update git openssh-client && rm -rf /var/cache/apk/*
25
26WORKDIR /html
27
28ENV COMMIT_USER="clarkzjw"
29ENV COMMIT_EMAIL="[email protected]"
30
31RUN git clone [email protected]:clarkzjw/blog.jinwei.me.git /html && git checkout gh-pages
32
33COPY --from=builder /app/_build/html /html
34
35RUN git add -A && git commit -m "`date`" && git push origin gh-pages
36
37
20FROM nginx:alpine 38FROM nginx:alpine
21 39
22COPY --from=builder /app/_build/html /usr/share/nginx/html 40COPY --from=builder /app/_build/html /usr/share/nginx/html
Powered by cgit v1.2.3 (git 2.41.0)