File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- ARG POSTGRES_VERSION=latest
1
+ ARG POSTGRES_VERSION=17
2
2
3
3
FROM postgres:$POSTGRES_VERSION
4
4
5
- ENV POSTGRES_VERSION=$POSTGRES_VERSION
5
+ ENV POSTGRES_VERSION=${ POSTGRES_VERSION}
6
6
7
7
RUN apt-get update
8
8
RUN apt-mark hold locales
9
9
RUN apt-get install curl ca-certificates -y
10
10
RUN install -d /usr/share/postgresql-common/pgdg
11
11
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
12
12
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'
13
+
14
+ RUN echo "Setting up PostgreSQL $POSTGRES_VERSION with wal2json"
13
15
RUN apt-get update
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
16
+ RUN apt-get install postgresql-server-dev-$POSTGRES_VERSION -y
17
+ RUN sh -c 'export PATH=/usr/lib/postgresql/$POSTGRES_VERSION/bin:$PATH'
18
+ RUN apt-get install postgresql-$POSTGRES_VERSION-wal2json -y
You can’t perform that action at this time.
0 commit comments