From 58907b08ba07e558925866221e018f21cbdf73d3 Mon Sep 17 00:00:00 2001 From: Boris Djurdjevic Date: Wed, 16 Feb 2022 09:23:07 +0100 Subject: [PATCH] Change to debian and install multiple client versions --- Dockerfile | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a833f12..6c258a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,26 @@ -FROM alpine:latest +FROM debian:bullseye +SHELL ["/bin/bash", "-o", "pipefail", "-c"] +ENV PG_DIR=/usr/lib/postgresql +RUN apt-get update \ + && apt-get install --no-install-recommends -y \ + apt-utils \ + ca-certificates \ + lsb-release \ + pigz \ + curl \ + jq \ + && echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list \ + && cat /etc/apt/sources.list.d/pgdg.list \ + && curl --silent https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ + && apt-get update \ + && apt-get install --no-install-recommends -y \ + postgresql-client-14 \ + postgresql-client-13 \ + postgresql-client-12 \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + RUN apk add restic postgresql-client bash pigz curl jq openssh-client COPY dump.sh ./ ADD ssh-config /root/.ssh/config