9 lines
586 B
Docker
9 lines
586 B
Docker
FROM docker:dind-rootless
|
|
USER root
|
|
RUN apk update && apk add perl curl bash build-base wget openssl-dev zlib-dev
|
|
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"
|