Pārlūkot izejas kodu

feat: support postgresql-client-14 (#55)

jeessy2 2 gadi atpakaļ
vecāks
revīzija
811bdc3b5c
1 mainītis faili ar 9 papildinājumiem un 3 dzēšanām
  1. 9 3
      Dockerfile

+ 9 - 3
Dockerfile

@@ -25,9 +25,15 @@ FROM debian:stable-slim
 LABEL name=backup-x
 LABEL url=https://github.com/jeessy2/backup-x
 
-RUN apt-get -y update  \
-    && apt-get install -y ca-certificates curl  \
-    && apt-get install -y postgresql-client \
+RUN apt-get -y update \
+    && apt-get install -y wget curl gpg gnupg2 software-properties-common apt-transport-https lsb-release ca-certificates
+
+# https://www.postgresql.org/download/linux/debian/
+RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' \
+    && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
+    && apt-get update
+
+RUN apt-get install -y postgresql-client-14 \
     && apt-get install -y default-mysql-client
 
 WORKDIR /app