-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 1002 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 1002 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
32
33
34
35
36
FROM debian:buster
MAINTAINER Christian Luginbühl <dinkel@pimprecords.com>
ENV BTR_BACKUP_URL https://github.com/dinkel/btr-backup.git
ENV BTR_BACKUP_BRANCH master
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
btrfs-tools \
ca-certificates \
git \
gnupg2 \
ldap-utils \
mariadb-client \
rsync \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
postgresql-client && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone --branch $BTR_BACKUP_BRANCH $BTR_BACKUP_URL /opt/btr-backup
VOLUME ["/backup"]
ADD run.sh /
CMD ["/run.sh"]