2017-03-13 19:11:05 +00:00
|
|
|
# TODO: make version variable?
|
|
|
|
FROM postgres:9.6
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
build-essential \
|
2017-03-15 20:24:51 +00:00
|
|
|
postgresql-server-dev-${PG_MAJOR} \
|
2017-03-13 19:11:05 +00:00
|
|
|
libphonenumber6 \
|
|
|
|
sudo
|
|
|
|
|
|
|
|
CMD ["/data/run-tests.sh"]
|
|
|
|
|
|
|
|
COPY ./ /data/
|
|
|
|
RUN chown -R postgres:postgres /data/
|
|
|
|
|
|
|
|
# Patch the entrypoint script so it always initializes the DB.
|
|
|
|
RUN patch /usr/local/bin/docker-entrypoint.sh < /data/docker-entrypoint.patch
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
RUN make && make install
|