blob: 5db447bcfb38c86ed6403241a13a0b11a33324e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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 /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"]
|