From 946d761b12c8b53dd02844614a225fa3ef4640de Mon Sep 17 00:00:00 2001 From: hoelee Date: Fri, 24 Apr 2026 09:00:00 +0800 Subject: [PATCH] chore(shell-sync): Dockerfile scaffolding --- platform/shell-sync/Dockerfile | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/platform/shell-sync/Dockerfile b/platform/shell-sync/Dockerfile index c33c8249..572eab13 100644 --- a/platform/shell-sync/Dockerfile +++ b/platform/shell-sync/Dockerfile @@ -11,3 +11,60 @@ RUN git clone https://github.com/imapsync/imapsync.git /src \ # would be invisible to the interpreter that actually runs imapsync. FROM debian:bookworm-slim +LABEL maintainer="Hoelee " +LABEL description="Multi-account IMAP sync with OAuth2 support for Office 365, Hotmail, Outlook.com, and Gmail" +LABEL org.opencontainers.image.source="https://github.com/hoelee/email-sync-oauth2" +LABEL org.opencontainers.image.licenses="MIT" + +# Package list follows upstream INSTALL.d/INSTALL.Debian.txt for the pinned +# revision, plus libdigest-hmac-perl (ships Digest::HMAC_SHA1) and the runtime +# tools this image needs (cron, msmtp). +RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ + perl \ + libauthen-ntlm-perl \ + libcgi-pm-perl \ + libcrypt-openssl-rsa-perl \ + libdata-uniqid-perl \ + libdigest-hmac-perl \ + libemail-address-perl \ + libencode-imaputf7-perl \ + libfile-copy-recursive-perl \ + libfile-tail-perl \ + libhtml-parser-perl \ + libhttp-daemon-perl \ + libhttp-daemon-ssl-perl \ + libhttp-message-perl \ + libio-socket-inet6-perl \ + libio-socket-ssl-perl \ + libio-tee-perl \ + libjson-webtoken-perl \ + libmail-imapclient-perl \ + libmodule-scandeps-perl \ + libnet-dns-perl \ + libnet-server-perl \ + libparse-recdescent-perl \ + libproc-processtable-perl \ + libreadonly-perl \ + libregexp-common-perl \ + libsys-meminfo-perl \ + libterm-readkey-perl \ + libtest-mockobject-perl \ + libunicode-string-perl \ + liburi-perl \ + libwww-perl \ + cron \ + msmtp \ + netcat-openbsd \ + procps \ + && rm -rf /var/lib/apt/lists/* + +# Install one immutable, verified upstream revision of imapsync and its current +# OAuth helper. The old helper URLs no longer exist upstream. +COPY --from=imapsync-source /src/imapsync /usr/local/bin/imapsync +COPY --from=imapsync-source /src/oauth2/oauth2_imap/oauth2_imap /usr/local/bin/oauth2_imap +RUN chmod +x /usr/local/bin/imapsync /usr/local/bin/oauth2_imap \ + && perl -c /usr/local/bin/imapsync \ + && perl -c /usr/local/bin/oauth2_imap \ + && imapsync --version +