Skip to content

Commit

Permalink
Fix log_based image
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Nov 4, 2024
1 parent 00ddf2f commit 6b20662
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ ARG POSTGRES_VERSION=latest

FROM postgres:$POSTGRES_VERSION

ENV POSTGRES_VERSION=$POSTGRES_VERSION

RUN apt-get update
RUN apt-mark hold locales
RUN apt-get install curl ca-certificates -y
RUN install -d /usr/share/postgresql-common/pgdg
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
RUN sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN apt-get update
RUN apt-get install postgresql-server-dev-16 -y
RUN sh -c 'export PATH=/usr/lib/postgresql/16/bin:$PATH'
RUN apt-get install postgresql-16-wal2json -y
RUN apt-get install postgresql-server-dev-${POSTGRES_VERSION} -y
RUN sh -c 'export PATH=/usr/lib/postgresql/${POSTGRES_VERSION}/bin:$PATH'
RUN apt-get install postgresql-${POSTGRES_VERSION}-wal2json -y

0 comments on commit 6b20662

Please sign in to comment.