2023-04-26 10:37:20 +02:00
|
|
|
FROM alpine:3.19
|
2024-02-15 17:43:01 +01:00
|
|
|
LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
|
2017-03-02 11:23:23 +01:00
|
|
|
|
2023-04-26 10:37:20 +02:00
|
|
|
# renovate: datasource=github-releases depName=tianon/gosu versioning=semver-coerced extractVersion=^(?<version>.*)$
|
|
|
|
ARG GOSU_VERSION=1.16
|
2023-01-04 19:10:32 +01:00
|
|
|
|
2023-04-26 10:37:20 +02:00
|
|
|
ENV LANG C.UTF-8
|
|
|
|
ENV LC_ALL C.UTF-8
|
2018-01-14 10:44:06 +01:00
|
|
|
|
2019-07-28 21:34:42 +02:00
|
|
|
# Add groups and users before installing Dovecot to not break compatibility
|
2023-04-26 10:37:20 +02:00
|
|
|
RUN addgroup -g 5000 vmail \
|
|
|
|
&& addgroup -g 401 dovecot \
|
|
|
|
&& addgroup -g 402 dovenull \
|
|
|
|
&& sed -i "s/999/99/" /etc/group \
|
|
|
|
&& addgroup -g 999 sogo \
|
|
|
|
&& addgroup nobody sogo \
|
|
|
|
&& adduser -D -u 5000 -G vmail -h /var/vmail vmail \
|
|
|
|
&& adduser -D -G dovecot -u 401 -h /dev/null -s /sbin/nologin dovecot \
|
|
|
|
&& adduser -D -G dovenull -u 402 -h /dev/null -s /sbin/nologin dovenull \
|
|
|
|
&& apk add --no-cache --update \
|
|
|
|
bash \
|
|
|
|
bind-tools \
|
|
|
|
findutils \
|
|
|
|
envsubst \
|
2018-01-14 10:44:06 +01:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2018-11-12 09:49:23 +01:00
|
|
|
jq \
|
2023-04-26 10:37:20 +02:00
|
|
|
lua \
|
|
|
|
lua-cjson \
|
2021-06-04 14:27:33 +02:00
|
|
|
lua-socket \
|
2023-04-26 10:37:20 +02:00
|
|
|
lua-sql-mysql \
|
|
|
|
lua5.3-sql-mysql \
|
|
|
|
icu-data-full \
|
|
|
|
mariadb-connector-c \
|
|
|
|
gcompat \
|
2019-10-12 13:15:36 +02:00
|
|
|
mariadb-client \
|
2023-04-26 10:37:20 +02:00
|
|
|
perl \
|
|
|
|
perl-ntlm \
|
|
|
|
perl-cgi \
|
|
|
|
perl-crypt-openssl-rsa \
|
|
|
|
perl-utils \
|
|
|
|
perl-crypt-ssleay \
|
|
|
|
perl-data-uniqid \
|
|
|
|
perl-dbd-mysql \
|
|
|
|
perl-dbi \
|
|
|
|
perl-digest-hmac \
|
|
|
|
perl-dist-checkconflicts \
|
|
|
|
perl-encode-imaputf7 \
|
|
|
|
perl-file-copy-recursive \
|
|
|
|
perl-file-tail \
|
|
|
|
perl-io-socket-inet6 \
|
|
|
|
perl-io-gzip \
|
|
|
|
perl-io-socket-ssl \
|
|
|
|
perl-io-tee \
|
|
|
|
perl-ipc-run \
|
|
|
|
perl-json-webtoken \
|
|
|
|
perl-mail-imapclient \
|
|
|
|
perl-module-implementation \
|
|
|
|
perl-module-scandeps \
|
|
|
|
perl-net-ssleay \
|
|
|
|
perl-package-stash \
|
|
|
|
perl-package-stash-xs \
|
|
|
|
perl-par-packer \
|
|
|
|
perl-parse-recdescent \
|
|
|
|
perl-lockfile-simple --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
|
|
|
|
libproc \
|
|
|
|
perl-readonly \
|
|
|
|
perl-regexp-common \
|
|
|
|
perl-sys-meminfo \
|
|
|
|
perl-term-readkey \
|
|
|
|
perl-test-deep \
|
|
|
|
perl-test-fatal \
|
|
|
|
perl-test-mockobject \
|
|
|
|
perl-test-mock-guard \
|
|
|
|
perl-test-pod \
|
|
|
|
perl-test-requires \
|
|
|
|
perl-test-simple \
|
|
|
|
perl-test-warn \
|
|
|
|
perl-try-tiny \
|
|
|
|
perl-unicode-string \
|
|
|
|
perl-proc-processtable \
|
|
|
|
perl-app-cpanminus \
|
2019-05-05 22:30:11 +02:00
|
|
|
procps \
|
2023-04-26 10:37:20 +02:00
|
|
|
python3 \
|
|
|
|
py3-mysqlclient \
|
|
|
|
py3-html2text \
|
|
|
|
py3-jinja2 \
|
|
|
|
py3-redis \
|
|
|
|
redis \
|
2018-01-14 10:44:06 +01:00
|
|
|
syslog-ng \
|
2023-04-26 10:37:20 +02:00
|
|
|
syslog-ng-redis \
|
|
|
|
syslog-ng-json \
|
|
|
|
supervisor \
|
|
|
|
tzdata \
|
2021-04-16 20:38:09 +02:00
|
|
|
wget \
|
2023-04-26 10:37:20 +02:00
|
|
|
dovecot \
|
|
|
|
dovecot-dev \
|
2019-07-28 21:34:42 +02:00
|
|
|
dovecot-lmtpd \
|
2023-04-26 10:37:20 +02:00
|
|
|
dovecot-lua \
|
2019-07-28 21:34:42 +02:00
|
|
|
dovecot-ldap \
|
|
|
|
dovecot-mysql \
|
2023-04-26 10:37:20 +02:00
|
|
|
dovecot-sql \
|
|
|
|
dovecot-submissiond \
|
|
|
|
dovecot-pigeonhole-plugin \
|
2019-07-28 21:34:42 +02:00
|
|
|
dovecot-pop3d \
|
2023-04-26 10:37:20 +02:00
|
|
|
dovecot-fts-solr \
|
|
|
|
&& arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
|
|
|
|
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$arch" \
|
|
|
|
&& chmod +x /usr/local/bin/gosu \
|
|
|
|
&& gosu nobody true
|
|
|
|
|
|
|
|
# RUN cpan LockFile::Simple
|
2017-04-03 20:06:49 +02:00
|
|
|
|
2018-08-02 12:14:13 +02:00
|
|
|
COPY trim_logs.sh /usr/local/bin/trim_logs.sh
|
2019-06-01 21:23:43 +02:00
|
|
|
COPY clean_q_aged.sh /usr/local/bin/clean_q_aged.sh
|
2017-05-06 23:42:18 +02:00
|
|
|
COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
|
2020-02-05 10:56:44 +01:00
|
|
|
COPY syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng-redis_slave.conf
|
2017-05-06 23:42:18 +02:00
|
|
|
COPY imapsync /usr/local/bin/imapsync
|
2021-04-16 20:38:09 +02:00
|
|
|
COPY imapsync_runner.pl /usr/local/bin/imapsync_runner.pl
|
2019-07-28 21:34:42 +02:00
|
|
|
COPY report-spam.sieve /usr/lib/dovecot/sieve/report-spam.sieve
|
|
|
|
COPY report-ham.sieve /usr/lib/dovecot/sieve/report-ham.sieve
|
|
|
|
COPY rspamd-pipe-ham /usr/lib/dovecot/sieve/rspamd-pipe-ham
|
|
|
|
COPY rspamd-pipe-spam /usr/lib/dovecot/sieve/rspamd-pipe-spam
|
[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)
[Docker API] Create pipe to pass Rspamd UI worker password
[Dovecot] Pull Spamassassin ruleset to be read by Rspamd (MANY THANKS to Peer Heinlein!)
[Dovecot] Garbage collector for deleted maildirs (set keep time via MAILDIR_GC_TIME which defaults to 1440 minutes)
[Web] Flush memcached after mailbox item changes, fixes #1808
[Web] Fix duplicate IDs, fixes #1792
[Compose] Use SQL sockets
[PHP-FPM] Update APCu and Redis libs
[Dovecot] Encrypt maildir with global key pair in crypt-vol-1 (BACKUP!), also fixes #1791
[Web] Fix deletion of spam aliases
[Helper] Add "crypt" to backup script
[Helper] Override file for external SQL socket (not supported!)
[Compose] New images for Rspamd, PHP-FPM, SOGo, Dovecot, Docker API, Watchdog, ACME, Postfix
2018-09-29 22:01:23 +02:00
|
|
|
COPY sa-rules.sh /usr/local/bin/sa-rules.sh
|
|
|
|
COPY maildir_gc.sh /usr/local/bin/maildir_gc.sh
|
2017-05-06 23:42:18 +02:00
|
|
|
COPY docker-entrypoint.sh /
|
|
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
2018-10-25 22:35:07 +02:00
|
|
|
COPY stop-supervisor.sh /usr/local/sbin/stop-supervisor.sh
|
2019-01-29 00:11:12 +01:00
|
|
|
COPY quarantine_notify.py /usr/local/bin/quarantine_notify.py
|
2019-02-05 00:00:22 +01:00
|
|
|
COPY quota_notify.py /usr/local/bin/quota_notify.py
|
2020-04-14 12:48:57 +02:00
|
|
|
COPY repl_health.sh /usr/local/bin/repl_health.sh
|
2017-05-06 23:42:18 +02:00
|
|
|
|
2017-03-02 11:23:23 +01:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
|