-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (22 loc) · 942 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
#
# A dockerfile for Backupninja
#
FROM ubuntu:noble
MAINTAINER Jean-Marc Tremeaux <[email protected]>
# Run Debian in non interactive mode
ENV DEBIAN_FRONTEND noninteractive
# Install PostgreSQL client
RUN apt-get update && \
apt-get -y -q install gnupg && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ noble-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
apt-get -y -q install postgresql-client-16 && \
rm -rf /var/lib/apt/lists/*
# Download and install backupninja
RUN apt-get update && \
apt-get -y -q install supervisor rsyslog cron postfix backupninja borgbackup patch rsync mysql-client less vim && \
rm -rf /var/lib/apt/lists/*
COPY etc /etc
COPY usr /usr
RUN chmod +x /usr/local/bin/init-backupninja.sh && /usr/local/bin/init-backupninja.sh
CMD ["/usr/local/bin/entrypoint.sh"]