From 2df072db29abcd1f973b095234a3e146f766d7a3 Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Fri, 3 Nov 2023 16:52:18 -0400 Subject: [PATCH] install correct pg_dump version --- Dockerfile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 679e33a..7c287c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,18 @@ -FROM alpine +FROM ubuntu:jammy -RUN apk update && apk add postgresql-client bash ncurses +# Add the PostgreSQL Apt Repository for PostgreSQL packages +RUN apt-get update && \ + apt-get install -y gnupg wget && \ + wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \ + echo "deb http://apt.postgresql.org/pub/repos/apt/ $(grep UBUNTU_CODENAME /etc/os-release | cut -d= -f2)-pgdg main" > /etc/apt/sources.list.d/pgdg.list -WORKDIR app +# Install postgresql-client-16 +RUN apt-get update && \ + apt-get install -y postgresql-client-16 bash ncurses-bin && \ + rm -rf /var/lib/apt/lists/* + +WORKDIR /app ADD . . -CMD bash migrate.sh +CMD ["bash", "migrate.sh"]