Skip to content

Commit

Permalink
Fix substitution?
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Nov 4, 2024
1 parent 6b20662 commit 1a9844a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG POSTGRES_VERSION=latest
ARG POSTGRES_VERSION=17

FROM postgres:$POSTGRES_VERSION

Expand All @@ -11,6 +11,6 @@ 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-${POSTGRES_VERSION} -y
RUN sh -c 'export PATH=/usr/lib/postgresql/${POSTGRES_VERSION}/bin:$PATH'
RUN apt-get install postgresql-${POSTGRES_VERSION}-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 1a9844a

Please sign in to comment.