diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..88e3be1 --- /dev/null +++ b/Containerfile @@ -0,0 +1,18 @@ +FROM fedora:37 + +ARG borg_version=1.2.3 + +RUN dnf install procps-ng borgbackup-$borg_version --assumeyes && \ + useradd --uid 1000 borg && \ + mkdir --parents /backups && \ + dnf clean all --assumeyes + +VOLUME /backups + +WORKDIR /backups + +HEALTHCHECK CMD pgrep --exact borg + +USER 1000:1000 + +CMD ["/bin/bash", "borg"]