Skip to content

Commit 6b20662

Browse files
Fix log_based image
1 parent 00ddf2f commit 6b20662

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ ARG POSTGRES_VERSION=latest
22

33
FROM postgres:$POSTGRES_VERSION
44

5+
ENV POSTGRES_VERSION=$POSTGRES_VERSION
6+
57
RUN apt-get update
68
RUN apt-mark hold locales
79
RUN apt-get install curl ca-certificates -y
810
RUN install -d /usr/share/postgresql-common/pgdg
911
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
1012
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'
1113
RUN apt-get update
12-
RUN apt-get install postgresql-server-dev-16 -y
13-
RUN sh -c 'export PATH=/usr/lib/postgresql/16/bin:$PATH'
14-
RUN apt-get install postgresql-16-wal2json -y
14+
RUN apt-get install postgresql-server-dev-${POSTGRES_VERSION} -y
15+
RUN sh -c 'export PATH=/usr/lib/postgresql/${POSTGRES_VERSION}/bin:$PATH'
16+
RUN apt-get install postgresql-${POSTGRES_VERSION}-wal2json -y

0 commit comments

Comments
 (0)