Skip to content

Commit

Permalink
install correct pg_dump version
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Nov 3, 2023
1 parent 32df2a4 commit 2df072d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 2df072d

Please sign in to comment.