Replace lsb-release with cat command

pull/742/head
Piero Toffanin 2019-10-22 19:21:57 -04:00
rodzic 11a0b37caf
commit d2a76d3da2
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -3,8 +3,8 @@ MAINTAINER Piero Toffanin <pt@masseranolabs.com>
ENV POSTGIS_MAJOR 2.3
RUN apt-get install -y lsb-release \
&& echo "deb http://deb.debian.org/debian "$(lsb_release --codename | cut -f2)"-backports main" >> /etc/apt/sources.list \
RUN source /etc/os-release \
&& echo "deb http://deb.debian.org/debian "$VERSION_CODENAME"-backports main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \