FROM postgres:10

RUN apt-get update && apt-get install iputils-ping nmap -y && apt-get autoremove -y && apt-get autoclean -y && apt-get clean -y

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["postgres"]
