forked from flynn/flynn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (20 loc) · 1008 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu-debootstrap:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update &&\
apt-get dist-upgrade -y &&\
apt-get -qy --fix-missing --force-yes install language-pack-en &&\
update-locale LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 &&\
dpkg-reconfigure locales &&\
apt-get -y install curl sudo &&\
curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - &&\
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' &&\
apt-get update &&\
apt-get install -y -q postgresql-9.3 postgresql-contrib-9.3 postgresql-9.3-pgextwlist &&\
apt-get clean &&\
apt-get autoremove -y
ADD postgresql.conf /etc/postgresql/9.3/main/postgresql.conf
ADD pg_hba.conf /etc/postgresql/9.3/main/pg_hba.conf
ADD bin/flynn-postgres /bin/flynn-postgres
ADD bin/flynn-postgres-api /bin/flynn-postgres-api
ADD start.sh /bin/start-flynn-postgres
ENTRYPOINT ["/bin/start-flynn-postgres"]