Add containerfile for running backup image

This commit is contained in:
Ethan Paul 2023-03-14 21:56:09 -04:00
parent 2322ef5cf4
commit 43ae055b7c
Signed by: enpaul
GPG Key ID: DAF443CA3A2FA6FA

18
Containerfile Normal file
View File

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