From cc08d51fa78f8d3d6dd00d00abd097ae8cd87451 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Tue, 16 Aug 2022 12:07:57 -0500 Subject: [PATCH] Update --- offlineimap/Containerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 offlineimap/Containerfile diff --git a/offlineimap/Containerfile b/offlineimap/Containerfile new file mode 100644 index 0000000..3347374 --- /dev/null +++ b/offlineimap/Containerfile @@ -0,0 +1,21 @@ +# Build the image: +# podman build -t localhost/offlineimap:latest . +# +# Usage: +# podman run -it --rm \ +# --name offlineimap \ +# -v ~/mail:/mail:Z \ +# -v ~/.offlineimap-metadata:/metadata:Z \ +# -v ~/.offlineimaprc:/.offlineimaprc:Z \ +# localhost/offlineimap + +FROM fedora:latest +LABEL maintainer "Jeffrey Serio " + +RUN printf "fastestmirror=True\ndeltarpm=True\nmax_parallel_downloads=10\n" | tee -a /etc/dnf/dnf.conf \ + && dnf install -y offlineimap python3-distro \ + && dnf clean all \ + && mkdir /{mail,metadata} + +CMD ["/usr/bin/offlineimap", "-o", "-u", "basic", "-c", ".offlineimaprc"] +