mirror of
https://codeberg.org/hyperreal/containerfiles
synced 2024-11-25 11:43:40 +01:00
22 lines
636 B
Docker
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"]
|
|
|