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
Yi EungJun 808f5af669 db: Make docker-entrypoint1.sh executable
The file should be marked as executable in the container because the
host on which it was built may not support executable bit (e.g.
Microsoft Windows).

This fixes https://github.com/mattermost/mattermost-docker/issues/20.
2016-05-17 19:21:12 +09:00

20 lines
614 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 \
&& apt-get remove -y build-essential python-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD make_db.sh /docker-entrypoint-initdb.d/
ADD setup-wale.sh /docker-entrypoint-initdb.d/
COPY docker-entrypoint1.sh /
RUN chmod +x /docker-entrypoint1.sh
ENTRYPOINT ["/docker-entrypoint1.sh"]
CMD ["postgres"]