FROM doseme/perlbase
MAINTAINER DoseMe Pty Ltd, software@doseme.com.au

RUN apt-get update && apt-get -y install expat libexpat-dev

RUN cpanm -v local::lib TAP::Harness::Archive Dist::Zilla

RUN cpanm -v --installdeps Dist::Zilla::Plugin::VersionFromModule
RUN cpanm -v --notest Dist::Zilla::Plugin::VersionFromModule
RUN cpanm --mirror=https://darkpan.doseme.com.au --mirror=https://cpan.metacpan.org/ --mirror-only -v Dist::Zilla::PluginBundle::DoseMe~0.0.5

RUN cpanm --mirror=https://darkpan.doseme.com.au --mirror=https://cpan.metacpan.org/ --mirror-only --installdeps -v Data::Structure::Validate

RUN useradd jenkins --uid 112 --groups 65534 --shell /bin/bash --create-home
