1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/core/nginx/Dockerfile

34 lines
692 B
Docker
Raw Normal View History

# syntax=docker/dockerfile-upstream:1.4.3
2021-11-04 15:22:12 +02:00
# build static assets (intermediate)
FROM base as static
COPY static/ /static/
RUN set -euxo pipefail \
; gzip -k9 /static/*.ico /static/*.txt \
; chmod a+rX-w -R /static
2021-11-04 15:22:12 +02:00
# nginx image
FROM base
ARG VERSION
LABEL version=$VERSION
RUN set -euxo pipefail \
2022-10-14 14:34:58 +02:00
; apk add --no-cache certbot nginx nginx-mod-mail openssl
2017-09-24 13:09:12 +02:00
COPY conf/ /conf/
COPY --from=static /static/ /static/
COPY *.py /
2017-09-24 13:09:12 +02:00
RUN echo $VERSION >/version
2021-09-02 20:46:56 +02:00
EXPOSE 80/tcp 443/tcp 110/tcp 143/tcp 465/tcp 587/tcp 993/tcp 995/tcp 25/tcp 10025/tcp 10143/tcp
HEALTHCHECK --start-period=60s CMD curl -skfLo /dev/null http://localhost/health
VOLUME ["/certs", "/overrides"]
2018-10-16 21:38:12 +02:00
CMD /start.py