From 6df582dc5c90cdcbd8a56773dfbb2168eb20810c Mon Sep 17 00:00:00 2001 From: "Openverse (Bot)" <101814513+openverse-bot@users.noreply.github.com> Date: Fri, 1 Nov 2024 20:29:55 -0400 Subject: [PATCH] Update postgres Docker tag to v13.16 (#5104) Co-authored-by: Madison Swain-Bowden --- docker/upstream_db/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/upstream_db/Dockerfile b/docker/upstream_db/Dockerfile index c00c7c2bc9f..50d1a8381e0 100644 --- a/docker/upstream_db/Dockerfile +++ b/docker/upstream_db/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM postgres:13.10 AS db +FROM postgres:13.16 AS db ARG PGCLI_VERSION @@ -8,6 +8,7 @@ ARG PGCLI_VERSION ENV PYTHONUNBUFFERED=1 ENV PIP_NO_CACHE_DIR=1 ENV PIP_NO_COLOR=1 +ENV PIPX_BIN_DIR=/usr/local/bin # Enable stop-on-error # https://www.postgresql.org/docs/current/app-psql.html @@ -18,10 +19,10 @@ RUN apt-get update \ && apt-get install -yqq --no-install-recommends \ python3-boto3 \ postgresql-plpython3-13 \ - python3-pip \ libpq-dev \ + pipx \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* \ - && pip3 install -U pip pgcli==${PGCLI_VERSION} + && pipx install pgcli==${PGCLI_VERSION} COPY *.sql /docker-entrypoint-initdb.d/