mailu/unbound (git2c9b7fa9f1d153b61cedd1a980b2841a1cfc7b21)

Published 2 years ago by lub in lub/mailu

Installation

docker pull gitea.lubiland.de/lub/mailu/unbound:git2c9b7fa9f1d153b61cedd1a980b2841a1cfc7b21
sha256:01e530e28c7e02e14b03e8f3c5670d423fca276ced17c549a81b50e85d83d845

Image Layers

ADD file:e4d600fc4c9c293efe360be7b30ee96579925d1b4634c94332e2ec73f7d8eca1 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 libcap ; ! [[ "$(uname -m)" == x86_64 ]] || apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing hardened-malloc==11-r0 # buildkit
WORKDIR /app
CMD ["/bin/sh" "-c" "/bin/bash"]
COPY /app/venv/ /app/venv/ # buildkit
COPY /app/snuffleupagus.so /usr/lib/php81/modules/ # buildkit
RUN /bin/sh -c setcap 'cap_net_bind_service=+ep' /app/venv/bin/gunicorn 'cap_net_bind_service=+ep' /usr/bin/python3.10 # buildkit
ENV VIRTUAL_ENV=/app/venv PATH=/app/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LD_PRELOAD=/usr/lib/libhardened_malloc.so ADMIN_ADDRESS=admin FRONT_ADDRESS=front 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 bind-tools unbound ; curl -so /etc/unbound/root.hints https://www.internic.net/domain/named.cache ; chown root:unbound /etc/unbound ; chmod 775 /etc/unbound ; /usr/sbin/unbound-anchor -a /etc/unbound/trusted-key.key || true # buildkit
COPY unbound.conf / # buildkit
COPY start.py / # buildkit
RUN |1 VERSION=local /bin/sh -c echo $VERSION >/version # buildkit
HEALTHCHECK &{["CMD-SHELL" "dig @127.0.0.1 || exit 1"] "0s" "0s" "0s" '\x00'}
CMD ["/bin/sh" "-c" "/start.py"]

Labels

Key Value
version local
Details
Container
2 years ago
0
OCI / Docker
linux/amd64
72 MiB
Versions (3) View all