2026-07-16 16:27:13 +00:00
|
|
|
FROM alpine:3.24
|
2018-03-19 16:42:28 +01:00
|
|
|
LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
|
|
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
2026-03-19 09:50:15 -04:00
|
|
|
COPY patch.py /tmp/patch.py
|
2018-03-19 16:42:28 +01:00
|
|
|
|
2026-06-08 22:28:15 -04:00
|
|
|
# hadolint ignore=DL3018
|
2026-07-16 16:27:13 +00:00
|
|
|
RUN apk add --no-cache offlineimap openssl tini && \
|
2026-03-17 19:16:06 -04:00
|
|
|
adduser -D offlineimap && \
|
2026-07-16 16:27:13 +00:00
|
|
|
# Apply post-install patches:
|
|
|
|
|
# - UnicodeEncodeError fallback for defective messages (Maildir + IMAP)
|
|
|
|
|
# - SSL SECLEVEL=1 in imaplib2 to allow connecting to servers with weak DH keys
|
|
|
|
|
# (OpenSSL 3.x defaults to SECLEVEL=2)
|
2026-03-19 09:50:15 -04:00
|
|
|
python3 /tmp/patch.py && rm /tmp/patch.py
|
|
|
|
|
|
2026-03-18 21:03:08 -04:00
|
|
|
COPY --chown=offlineimap offlineimaprc.*.tmpl /home/offlineimap/
|
2018-03-19 16:42:28 +01:00
|
|
|
|
|
|
|
|
USER "offlineimap"
|
|
|
|
|
|
2026-07-16 16:27:13 +00:00
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
|
|
|
CMD [ "/entrypoint.sh" ]
|