borg Docker & Self-Hosted Deployment

GitHub

Deduplicating archiver with compression and authenticated encryption.

13,573 stars Python Python 1 file ยท ~42,289 tokens #backup#borgbackup#compression#deduplication#encryption#python#ssh
1. Pull Image (DOCKERHUB) docker pull borgbackup/borg:latest
2. Docker Run (1-Click Launch) docker run -d --name borg --restart always borgbackup/borg:latest
3. Podman Run podman run -d --name borg --restart always borgbackup/borg:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/borgbackup/borg:latest
5. ORAS Pull (OCI Artifact) oras pull borgbackup/borg:latest
scripts/Dockerfile.linux-run
ARG BASE_IMAGE=python:3.13
FROM ${BASE_IMAGE}

# Install system dependencies
# These match the dependencies installed in CI for Linux (Debian/Ubuntu)
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    pkg-config \
    libssl-dev \
    libacl1-dev \
    liblz4-dev \
    libfuse3-dev \
    fuse3 \
    python3-dev \
    git \
 && rm -rf /var/lib/apt/lists/*

# Install tox
RUN pip install tox

# Set working directory
WORKDIR /app

# Check that we have the expected python version
RUN python3 --version

# Default command (can be overridden)
CMD ["tox"]