FROM centos:6

RUN yum -y install rpm-build wget gcc

# Python 2.7
RUN wget --user petrobras --password D8JjJtHXkXdzH8Zd http://pocoweb.petro.intelie.net/files/tmp/intelie-python27-2.7.3-1.x86_64.rpm
RUN rpm -ivh intelie-python27-2.7.3-1.x86_64.rpm

COPY entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
