aboutsummaryrefslogtreecommitdiff
path: root/services/docker/nginx/Dockerfile
blob: 9f5b7fe097060ddbd4b5de692c85abfc39724812 (plain)
1
2
3
4
5
6
7
8
9
10
FROM ghcr.io/gohugoio/hugo AS build-www
COPY --from=www . /project/
RUN ls && hugo

FROM nginx:mainline
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/
CMD ["/usr/bin/tini", "--", "/app/nginx-wrapper.bash"]