Skip to content

Commit cf2ba63

Browse files
author
Sameer Naik
committed
switch to ubuntu:xenial-20180525
1 parent f02df77 commit cf2ba63

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM sameersbn/ubuntu:14.04.20170123
2-
1+
FROM ubuntu:xenial-20180525
2+
LABEL maintainer="[email protected]"
33

4-
ENV PG_APP_HOME="/etc/docker-postgresql"\
4+
ENV PG_APP_HOME="/etc/docker-postgresql" \
55
PG_VERSION=9.6 \
66
PG_USER=postgres \
77
PG_HOME=/var/lib/postgresql \
@@ -12,10 +12,12 @@ ENV PG_APP_HOME="/etc/docker-postgresql"\
1212
ENV PG_BINDIR=/usr/lib/postgresql/${PG_VERSION}/bin \
1313
PG_DATADIR=${PG_HOME}/${PG_VERSION}/main
1414

15-
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
16-
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
15+
RUN apt-get update \
16+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg gnupg-curl \
17+
&& apt-key adv --fetch-keys https://www.postgresql.org/media/keys/ACCC4CF8.asc \
18+
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
1719
&& apt-get update \
18-
&& DEBIAN_FRONTEND=noninteractive apt-get install -y acl \
20+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y acl sudo \
1921
postgresql-${PG_VERSION} postgresql-client-${PG_VERSION} postgresql-contrib-${PG_VERSION} \
2022
&& ln -sf ${PG_DATADIR}/postgresql.conf /etc/postgresql/${PG_VERSION}/main/postgresql.conf \
2123
&& ln -sf ${PG_DATADIR}/pg_hba.conf /etc/postgresql/${PG_VERSION}/main/pg_hba.conf \
@@ -28,6 +30,5 @@ COPY entrypoint.sh /sbin/entrypoint.sh
2830
RUN chmod 755 /sbin/entrypoint.sh
2931

3032
EXPOSE 5432/tcp
31-
VOLUME ["${PG_HOME}", "${PG_RUNDIR}"]
3233
WORKDIR ${PG_HOME}
3334
ENTRYPOINT ["/sbin/entrypoint.sh"]

0 commit comments

Comments
 (0)