First commit
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
ARG source="https://github.com/abbbi/virtnbdbackup"
|
||||
|
||||
LABEL container.name="virtnbdbackup-docker"
|
||||
LABEL container.source.description="Backup utiliy for Libvirt kvm / qemu with Incremental backup support via NBD"
|
||||
LABEL container.description="virtnbdbackup and virtnbdrestore (plus depedencies) to run on hosts with libvirt >= 6.0.0"
|
||||
LABEL container.source=$source
|
||||
LABEL container.version="0.22"
|
||||
LABEL maintainer="Adrián Parilli <a.parilli@staffwerke.de>"
|
||||
|
||||
# Deploys dependencies and pulls sources, installing virtnbdbackup and removing unnecessary content:
|
||||
RUN \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
ca-certificates git python3-all python3-libnbd python3-libvirt python3-lz4 python3-setuptools python3-tqdm qemu-utils && \
|
||||
git clone $source.git && \
|
||||
cd virtnbdbackup && python3 setup.py install && cd .. && \
|
||||
apt-get purge -y git ca-certificates && apt-get -y autoremove --purge && apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /virtnbdbackup
|
||||
|
||||
# Default folder:
|
||||
WORKDIR /
|
||||
Reference in New Issue
Block a user