Skip to content

Commit

Permalink
Select the PostgreSQL repo based on the OS codename (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanokwa authored Nov 9, 2022
1 parent da62679 commit c2a0ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:14.19.3

WORKDIR /usr/odk

RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list; \
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(grep -oP 'VERSION_CODENAME=\K\w+' /etc/os-release)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list; \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -; \
apt-get update; \
apt-get install -y cron gettext postgresql-client-9.6
Expand Down

0 comments on commit c2a0ef2

Please sign in to comment.