FROM doseme/perlbase:latest
LABEL authors="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
RUN cpanm -v local::lib TAP::Formatter::JUnit
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.global.doseme.io --mirror=https://cpan.metacpan.org/ --mirror-only -v Dist::Zilla::PluginBundle::DoseMe~v1.0.0
RUN cpanm --mirror=https://darkpan.global.doseme.io --mirror=https://cpan.metacpan.org/ --mirror-only --installdeps -v DoseMe::Util

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