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/Dockerfile11
1 files changed, 4 insertions, 7 deletions
diff --git a/services/docker/nginx/Dockerfile b/services/docker/nginx/Dockerfile
index dfaa4a4..9f5b7fe 100644
--- a/services/docker/nginx/Dockerfile
+++ b/services/docker/nginx/Dockerfile
@@ -1,12 +1,9 @@
-FROM debian AS build-www
-ADD 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 ghcr.io/gohugoio/hugo AS build-www
+COPY --from=www . /project/
+RUN ls && hugo
FROM nginx:mainline
-COPY --from=build-www /app/src/public /srv/www
+COPY --from=build-www /project/public /srv/www
RUN apt update && apt-get install -y tini certbot && rm -rf /var/lib/apt/lists/*
ADD mail-robots.txt /srv/mail/robots.txt
ADD certbot.bash nginx-wrapper.bash /app/