FROM centos:7

ARG VERSION=94
RUN yum install -y  https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

RUN yum install -y postgresql${VERSION}-server python-psycopg2
RUN python -c 'import psycopg2'