comparison postgres/Dockerfile @ 90:63cb9be89a26 production v1.0.0

flow: Merged <release> 'v1.0.0' to <master> ('production').
author smith@nwoca.org
date Thu, 22 Sep 2016 01:49:20 +0100
parents 53671513b240
children 4b8eb7301ae0
comparison
equal deleted inserted replaced
1:44f401c902ba 90:63cb9be89a26
1 #
2 # Docker file to create postgres image for ssdt applications
3
4 FROM postgres:9.4.5
5
6 MAINTAINER Dave Smith smith@nwoca.org
7
8 ENV DB_NAME=database \
9 DB_USER=dbuser \
10 DB_PASS=dbpassword \
11 PGDATA=/var/lib/postgresql/data/pgdata
12
13 COPY setupDatabase.sh /docker-entrypoint-initdb.d/setupDatabase.sh
14
15 COPY setupExtensions.sh /docker-entrypoint-initdb.d/setupExtensions.sh
16
17 RUN chmod 755 /docker-entrypoint-initdb.d/setupDatabase.sh \
18 & chmod 755 /docker-entrypoint-initdb.d/setupExtensions.sh
19
20 ENV TZ=America/New_York
21
22 RUN echo $TZ > /etc/timezone \
23 && dpkg-reconfigure --frontend noninteractive tzdata