Dockerfile.base 891 Bytes
Newer Older
1
# Base image to build the binaries from, based on BorgBackup version 1.1.14
2 3

ARG BORG_ARCH
4
FROM balenalib/${BORG_ARCH}-python:3.5-stretch-run
5 6 7 8 9 10 11 12 13 14 15

ARG BORG_ARCH

ENV BORG_DIR /borg
ENV BORG_BUILD_DIR ${BORG_DIR}/dist

WORKDIR ${BORG_DIR}

# install dev requirements
RUN set -ex; \
    apt-get update; \
16
    apt-get upgrade; \
17 18 19 20
    apt-get install -y --no-install-recommends \
    build-essential git \
    fuse libfuse-dev pkg-config \
    libssl-dev libacl1-dev \
21 22
    zlib1g-dev liblz4-dev \
    libzstd-dev libffi-dev; \
23 24
    rm -rf /var/lib/apt/lists/*;

25
# fetch borg source code for version 1.1.14
26
RUN set -ex; \
27
    git clone -b 1.1.14 https://github.com/borgbackup/borg.git .;
28 29 30

# install all requirements
RUN set -ex; \
31
    pip install -U pip pyinstaller wheel; \
32 33
    pip install -r requirements.d/development.txt; \
    pip install -r requirements.d/fuse.txt; \
34
    pip install -e .[fuse];