File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
# vim:set ft=dockerfile:
2
- FROM debian:jessie
2
+ FROM ubuntu:12.04
3
3
4
4
# explicitly set user/group IDs
5
5
RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=999 postgres
@@ -28,16 +28,17 @@ RUN mkdir /docker-entrypoint-initdb.d
28
28
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
29
29
30
30
ENV PG_MAJOR 9.1
31
- ENV PG_VERSION 9.1.22-1.pgdg80 +1
31
+ ENV PG_VERSION 9.1.22-1.pgdg12.4 +1
32
32
33
- RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie -pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list
33
+ RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ precise -pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list
34
34
35
35
RUN apt-get update \
36
36
&& apt-get install -y postgresql-common \
37
37
&& sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \
38
38
&& apt-get install -y \
39
39
postgresql-$PG_MAJOR=$PG_VERSION \
40
40
postgresql-contrib-$PG_MAJOR=$PG_VERSION \
41
+ && apt-get install -y postgresql-9.1-postgis \
41
42
&& rm -rf /var/lib/apt/lists/*
42
43
43
44
# make the sample config easier to munge (and "correct by default")
You can’t perform that action at this time.
0 commit comments