-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (21 loc) · 686 Bytes
/
Dockerfile
File metadata and controls
31 lines (21 loc) · 686 Bytes
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
# rdiff-backup is compatible with Debian bookworm python 3.12
FROM python:3.12-bookworm AS base
LABEL author="Patrik Dufresne <patrik@ikus-soft.com>"
EXPOSE 8080
VOLUME ["/etc/rdiffweb", "/backups"]
ENV RDIFFWEB_SERVER_HOST=0.0.0.0
RUN set -x; \
apt -y update && \
apt install -y --no-install-recommends librsync-dev python3-pylibacl python3-pyxattr && \
rm -Rf /var/lib/apt/lists/*
COPY . /src/
RUN set -x; \
cd /src/ && \
pip3 install --no-cache-dir rdiff-backup==2.2.6
FROM base AS test
RUN set -x; \
cd /src/ && \
pip3 install --no-cache-dir . ".[test]" && \
pytest && \
rm -Rf /tmp/* /src/
CMD ["/usr/local/bin/rdiffweb"]