aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-28 20:02:15 +0800
committercrupest <crupest@outlook.com>2022-11-28 20:02:15 +0800
commitb43471676ad10a35f8eda86ffedc99b871b6ea59 (patch)
tree9175726b2d446b3fd391b3c996ff5babba268da9 /docker
parent2597aa74226281ff48b946272f09fc0ff24674f2 (diff)
downloadcrupest-b43471676ad10a35f8eda86ffedc99b871b6ea59.tar.gz
crupest-b43471676ad10a35f8eda86ffedc99b871b6ea59.tar.bz2
crupest-b43471676ad10a35f8eda86ffedc99b871b6ea59.zip
New way to deploy blog.
Diffstat (limited to 'docker')
-rw-r--r--docker/crupest-nginx/Dockerfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/docker/crupest-nginx/Dockerfile b/docker/crupest-nginx/Dockerfile
index 532a76b..ea55765 100644
--- a/docker/crupest-nginx/Dockerfile
+++ b/docker/crupest-nginx/Dockerfile
@@ -5,10 +5,13 @@ WORKDIR /sites/www
RUN pnpm install --frozen-lockfile && pnpm run build
FROM klakegg/hugo:ext-alpine AS build-blog
-COPY sites/blog /hugo
-WORKDIR /hugo
+# install git
+RUN apk add --no-cache git
+WORKDIR /
+RUN git clone https://github.com/crupest/blog --recurse-submodules
+WORKDIR /blog
RUN hugo
FROM nginx:latest
COPY --from=build-www /sites/www/dist /srv/www
-COPY --from=build-blog /hugo/public /srv/blog
+COPY --from=build-blog /blog/public /srv/blog