chore(shell-sync): Dockerfile scaffolding

This commit is contained in:
hoelee committed 2026-04-24 09:00:00 +08:00
1 parent 84bc168f7a
commit 946d761b12
1 file changed
+57
+57
View File
@@ -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 <[email protected]>"
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