diff --git a/service.dockerfile b/service.dockerfile index 6bc6dd85..c43a383c 100644 --- a/service.dockerfile +++ b/service.dockerfile @@ -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