• Joined on 2026-05-16

borg-ui (latest)

Published 2026-05-16 16:24:45 +02:00 by poma

Installation

docker pull gitea.poma-lab.com/poma/borg-ui:latest
sha256:d4345d350b203d6d118010d874b66a27380bea8d1cc869232608458a49a3e682

About this package

Replace complex Borg Backup terminal commands with a beautiful web UI. Create, schedule, and restore backups with just a few clicks.

Image Layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1777939200'
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=C.UTF-8
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
ENV PYTHON_VERSION=3.10.20
ENV PYTHON_SHA256=de6517421601e39a9a3bc3e1bc4c7b2f239297423ee05e282598c83ec0647505
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==79.0.1' 'wheel<0.46' ; pip3 --version # buildkit
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
CMD ["python3"]
ARG BORG1_VERSION=1.4.4
ARG BORG2_VERSION=2.0.0b21
ENV BORG1_VERSION=1.4.4
ENV BORG2_VERSION=2.0.0b21
LABEL org.opencontainers.image.title=Borg UI Runtime Base
LABEL org.opencontainers.image.description=Shared runtime base for Borg UI with Borg 1.x and Borg 2.x preinstalled
LABEL org.opencontainers.image.vendor=Borg UI
LABEL org.opencontainers.image.source=https://github.com/karanhudia/borg-ui
WORKDIR /app
RUN |2 BORG1_VERSION=1.4.4 BORG2_VERSION=2.0.0b21 /bin/sh -c apt-get update && apt-get install -y cron curl wget gnupg lsb-release gosu sudo libacl1-dev libssl-dev liblz4-dev libzstd-dev libxxhash-dev build-essential pkg-config fuse3 libfuse3-dev rsync openssh-client sshfs python3-pip python3-dev htop iotop net-tools iputils-ping tree ncdu sshpass && rm -rf /var/lib/apt/lists/* # buildkit
RUN |2 BORG1_VERSION=1.4.4 BORG2_VERSION=2.0.0b21 /bin/sh -c pip install --no-cache-dir pyfuse3 # buildkit
RUN |2 BORG1_VERSION=1.4.4 BORG2_VERSION=2.0.0b21 /bin/sh -c pip install --no-cache-dir "borgbackup[fuse]==${BORG1_VERSION}" # buildkit
RUN |2 BORG1_VERSION=1.4.4 BORG2_VERSION=2.0.0b21 /bin/sh -c python3 -m venv /opt/borg2-venv && /opt/borg2-venv/bin/pip install --no-cache-dir pyfuse3 "borgbackup[fuse]==${BORG2_VERSION}" && ln -sf /opt/borg2-venv/bin/borg /usr/local/bin/borg2 # buildkit
RUN |2 BORG1_VERSION=1.4.4 BORG2_VERSION=2.0.0b21 /bin/sh -c mkdir -p /data /data/ssh_keys /data/borg_keys /data/logs /data/config /backups /var/log/borg /etc/borg # buildkit
RUN |2 BORG1_VERSION=1.4.4 BORG2_VERSION=2.0.0b21 /bin/sh -c groupadd -g 1001 borg && useradd -m -u 1001 -g 1001 -s /bin/bash borg && usermod -a -G sudo borg && groupadd -f fuse && usermod -a -G fuse borg && echo "borg ALL=(ALL) NOPASSWD: /usr/bin/borg, /usr/bin/crontab, /usr/bin/apt-get" >> /etc/sudoers && sed -i 's/^#user_allow_other/user_allow_other/' /etc/fuse.conf # buildkit
RUN |2 BORG1_VERSION=1.4.4 BORG2_VERSION=2.0.0b21 /bin/sh -c mkdir -p /home/borg/.ssh /etc/cron.d && chown -R borg:borg /app /data /backups /var/log/borg /etc/borg /home/borg/.ssh /etc/cron.d && chmod -R 755 /app /data /backups /var/log/borg /etc/borg && chmod 700 /home/borg/.ssh # buildkit
ARG APP_VERSION=2.1.0
ENV APP_VERSION=2.1.0
LABEL org.opencontainers.image.title=Borg Web UI
LABEL org.opencontainers.image.description=A lightweight web interface for Borg backup management
LABEL org.opencontainers.image.version=2.1.0
LABEL org.opencontainers.image.vendor=Borg Web UI
LABEL org.opencontainers.image.url=https://github.com/karanhudia/borg-ui
LABEL org.opencontainers.image.documentation=https://github.com/karanhudia/borg-ui/blob/main/README.md
LABEL org.opencontainers.image.source=https://github.com/karanhudia/borg-ui
LABEL org.opencontainers.image.licenses=MIT
LABEL com.borg-ui.icon.color=#00dd00
WORKDIR /app
COPY /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages # buildkit
COPY /usr/local/bin /usr/local/bin # buildkit
COPY docker/frontend-build-output/ ./app/static/ # buildkit
COPY app/ ./app/ # buildkit
COPY VERSION ./VERSION # buildkit
RUN |1 APP_VERSION=2.1.0 /bin/sh -c chown -R borg:borg /app /data /backups /var/log/borg /etc/borg && chmod -R 755 /app && chmod -R 755 /data && chmod -R 755 /backups && chmod -R 755 /var/log/borg && chmod -R 755 /etc/borg # buildkit
COPY entrypoint.sh /entrypoint.sh # buildkit
RUN |1 APP_VERSION=2.1.0 /bin/sh -c chmod +x /entrypoint.sh # buildkit
ENV PYTHONPATH=/app
ENV DATA_DIR=/data
ENV DATABASE_URL=sqlite:////data/borg.db
ENV BORG_BACKUP_PATH=/backups
ENV ENABLE_CRON_BACKUPS=false
ENV PORT=8081
ENV ACTIVATION_SERVICE_URL=https://license.borgui.com
ENV ENABLE_STARTUP_LICENSE_SYNC=true
EXPOSE [8081/tcp]
HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:${PORT:-8081}/ || exit 1"] "30s" "10s" "5s" "0s" '\x03'}
ENTRYPOINT ["/entrypoint.sh"]

Labels

Key Value
com.borg-ui.icon.color #00dd00
org.opencontainers.image.created 2026-05-16T09:22:29.940Z
org.opencontainers.image.description Replace complex Borg Backup terminal commands with a beautiful web UI. Create, schedule, and restore backups with just a few clicks.
org.opencontainers.image.documentation https://github.com/karanhudia/borg-ui/blob/main/README.md
org.opencontainers.image.licenses AGPL-3.0
org.opencontainers.image.revision 2e4da53245aff09704ab818183d09803208d41df
org.opencontainers.image.source https://github.com/karanhudia/borg-ui
org.opencontainers.image.title borg-ui
org.opencontainers.image.url https://github.com/karanhudia/borg-ui
org.opencontainers.image.vendor Borg Web UI
org.opencontainers.image.version 2.1
Details
Container
2026-05-16 16:24:45 +02:00
0
OCI / Docker
linux/amd64
AGPL-3.0
304 MiB
Versions (1) View all
latest 2026-05-16