FROM perl:latest

RUN apt-get update

RUN cpanm -n Net::RDAP List::MoreUtils JSON URI

ADD --chmod=0755 https://raw.githubusercontent.com/gbxyz/rdapper/master/rdapper /usr/local/bin/rdapper

ENTRYPOINT ["/usr/local/bin/perl", "/usr/local/bin/rdapper"]

CMD ["--help"]
