ADD file:756183bba9c7f4593c2b216e98e4208b9163c4c962ea0837ef88bd917609d001 in / |
CMD ["/bin/sh"] |
ENV TZ=Etc/UTC LANG=C.UTF-8 |
ARG MAILU_UID=1000 |
ARG MAILU_GID=1000 |
RUN |2 MAILU_UID=1000 MAILU_GID=1000 /bin/sh -c set -euxo pipefail ; addgroup -Sg ${MAILU_GID} mailu ; adduser -Sg ${MAILU_UID} -G mailu -h /app -g "mailu app" -s /bin/bash mailu ; apk add --no-cache bash ca-certificates curl python3 tzdata ; ! [[ "$(uname -m)" == x86_64 ]] || apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing hardened-malloc # buildkit |
WORKDIR /app |
CMD ["/bin/sh" "-c" "/bin/bash"] |
COPY /app/venv/ /app/venv/ # buildkit |
COPY /app/snuffleupagus.so /usr/lib/php81/modules/ # buildkit |
ENV VIRTUAL_ENV=/app/venv PATH=/app/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ADMIN_ADDRESS=admin FRONT_ADDRESS=front FTS_ATTACHMENTS_ADDRESS=tika SMTP_ADDRESS=smtp IMAP_ADDRESS=imap OLETOOLS_ADDRESS=oletools REDIS_ADDRESS=redis ANTIVIRUS_ADDRESS=antivirus ANTISPAM_ADDRESS=antispam WEBMAIL_ADDRESS=webmail WEBDAV_ADDRESS=webdav |
ARG VERSION=local |
LABEL version=local |
RUN |1 VERSION=local /bin/sh -c set -euxo pipefail ; apk add --no-cache libressl mariadb-connector-c postgresql-libs # buildkit |
COPY /work/static/ ./mailu/static/ # buildkit |
COPY audit.py / # buildkit |
COPY start.py / # buildkit |
COPY migrations/ ./migrations/ # buildkit |
COPY mailu/ ./mailu/ # buildkit |
RUN |1 VERSION=local /bin/sh -c set -euxo pipefail ; venv/bin/pybabel compile -d mailu/translations # buildkit |
RUN |1 VERSION=local /bin/sh -c echo $VERSION >/version # buildkit |
HEALTHCHECK &{["CMD-SHELL" "curl -skfLo /dev/null http://localhost:8080/ping"] "0s" "0s" "0s" '\x00'} |
VOLUME [/data /dkim] |
ENV FLASK_APP=mailu |
CMD ["/bin/sh" "-c" "/start.py"] |