docker-perl-dind/Dockerfile
Automation Pipeline 59a2f123f4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Had to also include openssl directly, apparently alpine doesnt do dep resolution there with -dev packages?
2023-10-09 08:45:42 -04:00

13 lines
874 B
Docker

FROM docker:cli
USER root
RUN apk update && apk add perl curl bash build-base wget openssl-dev zlib-dev openssl
#USER rootless
RUN curl -L https://install.perlbrew.pl | bash
RUN bash -c "source $HOME/perl5/perlbrew/etc/bashrc; perlbrew init && perlbrew install -j 8 --verbose --notest perl-5.38.0"
WORKDIR /home/rootless/
ENV SHELL=/bin/bash
RUN bash -c "source $HOME/perl5/perlbrew/etc/bashrc; perlbrew use perl-5.38.0 && perlbrew install-cpanm && wget https://gitea.simcop2387.info/simcop2387/docker-perl/raw/branch/master/cpanfile && cpanm --installdeps . --verbose && rm cpanfile"
ENV PATH="/home/rootless/perl5/perlbrew/bin:/home/rootless/perl5/perlbrew/perls/perl-5.38.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ENV PERLBREW_HOME="/home/rootless/.perlbrew"
ENV PERLBREW_ROOT="/home/rootless/perl5/perlbrew"
ENV PERLBREW_SHELLRC_VERSION="0.98"