Skip to content

Commit

Permalink
Change to debian and install multiple client versions
Browse files Browse the repository at this point in the history
  • Loading branch information
djboris9 authored Feb 16, 2022
1 parent ed4385e commit 58907b0
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 58907b0

Please sign in to comment.