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

37 lines
1023 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 \
2023-10-09 17:40:44 +02:00
; apk add --no-cache certbot nginx nginx-mod-http-brotli nginx-mod-mail openssl \
; apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main dovecot-lua dovecot-pigeonhole-plugin 'dovecot-lmtpd<2.4' dovecot-pop3d dovecot-submissiond
2017-09-24 13:09:12 +02:00
COPY conf/ /conf/
COPY --from=static /static/ /static/
COPY *.py /
2023-05-10 09:54:56 +02:00
COPY dovecot/proxy.conf dovecot/login.lua /dovecot_conf/
2017-09-24 13:09:12 +02:00
RUN echo $VERSION >/version
2021-09-02 20:46:56 +02:00
2023-04-20 15:36:17 +02:00
EXPOSE 80/tcp 443/tcp 110/tcp 143/tcp 465/tcp 587/tcp 993/tcp 995/tcp 25/tcp 4190/tcp
# EXPOSE 10025/tcp 10143/tcp 14190/tcp
2023-05-09 09:51:53 +02:00
HEALTHCHECK --start-period=60s CMD curl -skfLo /dev/null http://127.0.0.1:10204/health && kill -0 `cat /run/dovecot/master.pid`
VOLUME ["/certs", "/overrides"]
2018-10-16 21:38:12 +02:00
CMD /start.py