-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (33 loc) · 841 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM alpine AS borg
ARG BORG_VERSION=1.1.11
ARG BORGMATIC_VERSION=1.5.2
# https://borgbackup.readthedocs.io/en/stable/installation.html#dependencies
RUN apk add --upgrade --no-cache \
acl-dev \
attr-dev \
build-base \
fuse-dev \
python3-dev \
linux-headers \
openssl-dev
RUN python3 -m venv /app && /app/bin/pip install \
borgbackup==${BORG_VERSION} \
borgmatic==${BORGMATIC_VERSION} \
llfuse \
prometheus_client
FROM alpine
MAINTAINER nicph
RUN apk --update --no-cache add \
libacl \
libattr \
fuse \
openssl \
python3 \
openssh-client
COPY --from=borg /app /app
COPY env.sh /etc/profile.d/
COPY entrypoint borg_exporter /app/bin/
ENV BORG_BASE_DIR=/borg
VOLUME /borg
VOLUME /etc/borgmatic.d
ENTRYPOINT ["/app/bin/entrypoint"]