cd51949b47
- Alpine 3.23 → 3.24 (ships Python 3.14, not 3.12) - patch.py: use glob + sys.version_info instead of hardcoded python3.12 paths - Move SSL SECLEVEL=1 sed from Dockerfile into patch.py - Tini: replace commented-out manual binary download with apk add tini (ENTRYPOINT ["/sbin/tini", "--"] as PID 1 for proper signal handling) - Remove dead TINI_VERSION env and commented-out lines
21 lines
687 B
Docker
21 lines
687 B
Docker
FROM alpine:3.24
|
|
LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
COPY patch.py /tmp/patch.py
|
|
|
|
# hadolint ignore=DL3018
|
|
RUN apk add --no-cache offlineimap openssl tini && \
|
|
adduser -D offlineimap && \
|
|
# 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)
|
|
python3 /tmp/patch.py && rm /tmp/patch.py
|
|
|
|
COPY --chown=offlineimap offlineimaprc.*.tmpl /home/offlineimap/
|
|
|
|
USER "offlineimap"
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
CMD [ "/entrypoint.sh" ] |