FROM postgres:9.6 ENV LC_ALL=en_US.ISO-8859-1 ENV LC_MESSAGES=en_US.ISO-8859-1 ENV LC_MONETARY=en_US.ISO-8859-1 ENV LC_NUMERIC=en_US.ISO-8859-1 ENV LC_TIME=en_US.ISO-8859-1 RUN apt-get update && apt-get install -y \ vim git wget RUN echo "en_US ISO-8859-1" > /etc/locale.gen RUN locale-gen "en_US ISO-8859-1" RUN export LC_ALL="en_US ISO-8859-1" RUN update-locale RUN git clone http://desenvolvimento:SimpleS_G1t34@192.168.115.83:3000/awade/aplicativo.git RUN mv aplicativo/projeto/base/schema/adduser.sql /docker-entrypoint-initdb.d/adduser.sql RUN mv aplicativo/projeto/base/schema/createSchema.sql /docker-entrypoint-initdb.d/createSchema.sql RUN mv aplicativo/projeto/base/schema/putData.sql /docker-entrypoint-initdb.d/putData.sql RUN rm -rf aplicativo RUN echo "host all all 192.168.115.0/24 password" >> /var/lib/postgresql/data/pg_hba.conf RUN echo "host all all 10.252.252.0/24 password" >> /var/lib/postgresql/data/pg_hba.conf RUN echo "host all all 177.67.197.146/32 password" >> /var/lib/postgresql/data/pg_hba.conf EXPOSE 5432