Explorar o código

Fixed codename match issue, when using `FROM ubuntu` wil be pulled latest image

fundon %!s(int64=11) %!d(string=hai) anos
pai
achega
cfa0968191
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      dockerfiles/images/postgres/Dockerfile

+ 2 - 1
dockerfiles/images/postgres/Dockerfile

@@ -9,7 +9,8 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B97B0AFCAA
 
 # Add PostgreSQL's repository. It contains the most recent stable release
 #     of PostgreSQL, ``9.3``.
-RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
+# See http://apt.postgresql.org/pub/repos/apt/README
+RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
 
 # Update the Ubuntu and PostgreSQL repository indexes
 RUN apt-get update