aboutsummaryrefslogtreecommitdiff
path: root/services/docker/nginx/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'services/docker/nginx/Dockerfile')
-rw-r--r--services/docker/nginx/Dockerfile15
1 files changed, 8 insertions, 7 deletions
diff --git a/services/docker/nginx/Dockerfile b/services/docker/nginx/Dockerfile
index 67d41d1..5db447b 100644
--- a/services/docker/nginx/Dockerfile
+++ b/services/docker/nginx/Dockerfile
@@ -1,12 +1,13 @@
-FROM node:lts AS build-www
-RUN npm install -g pnpm
-COPY sites/www /sites/www
-WORKDIR /sites/www
-RUN pnpm install --frozen-lockfile && pnpm run build
+FROM debian AS build-www
+ADD --chmod=755 install-hugo.bash build-www.bash /app/
+COPY --from=www . /app/src/
+WORKDIR /app
+RUN /app/install-hugo.bash
+RUN /app/build-www.bash
FROM nginx:mainline
-COPY --from=build-www /sites/www/dist /srv/www
-ADD sites/www/favicon.ico /srv/www/favicon.ico
+COPY --from=build-www /app/src/public /srv/www
+ADD mail-robots.txt /srv/mail/robots.txt
RUN apt update && apt-get install -y tini certbot && rm -rf /var/lib/apt/lists/*
ADD --chmod=755 certbot.bash nginx-wrapper.bash /app/
CMD ["/usr/bin/tini", "--", "/app/nginx-wrapper.bash"]