# 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"]