From 43ae055b7caf7e5cc07ecffac5bba671b99b9e78 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Tue, 14 Mar 2023 21:56:09 -0400 Subject: [PATCH] Add containerfile for running backup image --- Containerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Containerfile 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"]