containerfiles/offlineimap/Containerfile
Jeffrey Serio cc08d51fa7 Update
2023-01-30 18:38:38 -06:00

22 lines
636 B
Docker

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