containerfiles/offlineimap/Containerfile

22 lines
636 B
Plaintext
Raw Normal View History

2022-08-16 19:07:57 +02:00
# 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 <hyperreal@fedoraproject.org>"
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"]