This repository has been archived on 2021-08-31. You can view files and clone it, but cannot push or open issues or pull requests.
mattermost/db/Dockerfile
nikosch86 142b766cde make use of postgres image db init script, use their variable naming … (#100)
* make use of postgres image db init script, use their variable naming scheme, make setup-wale executable so it can actually run
2017-02-23 13:32:24 -08:00

19 lines
579 B
Docker

FROM postgres:9.4
RUN apt-get update \
&& apt-get install -y python-dev lzop pv daemontools curl build-essential \
&& curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python \
&& pip install 'wal-e<1.0.0' \
&& apt-get remove -y build-essential python-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY setup-wale.sh /docker-entrypoint-initdb.d/
COPY docker-entrypoint1.sh /
RUN chmod +x /docker-entrypoint1.sh
ENTRYPOINT ["/docker-entrypoint1.sh"]
CMD ["postgres"]