forked from compose/governor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (20 loc) · 654 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
25
26
FROM postgres:9.4
RUN apt-get update && \
apt-get install -y python-psycopg2 python-yaml python-dev libffi-dev libssl-dev python-pip
RUN pip install -U pip setuptools
RUN pip install python-etcd
RUN mkdir -p /governor/helpers
COPY governor.py /governor/governor.py
COPY helpers /governor/helpers
COPY postgres0.yml /governor/
COPY pg_hba.conf /governor/
COPY init.sql /governor/
COPY docker-entrypoint.sh /
RUN mkdir -p /data/postgres && \
chown -R postgres /data && \
chmod 700 /data/postgres && \
chown postgres /governor && \
chmod +x docker-entrypoint.sh
VOLUME /data/postgres
WORKDIR /governor
ENTRYPOINT ["/docker-entrypoint.sh"]