14 lines
853 B
Docker
14 lines
853 B
Docker
FROM docker:cli
|
|
USER root
|
|
ENV HOME=/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 /root/
|
|
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 --notest --installdeps . --verbose && rm cpanfile"
|
|
ENV PATH="/root/perl5/perlbrew/bin:/root/perl5/perlbrew/perls/perl-5.38.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
ENV PERLBREW_HOME="/root/.perlbrew"
|
|
ENV PERLBREW_ROOT="/root/perl5/perlbrew"
|
|
ENV PERLBREW_SHELLRC_VERSION="0.98"
|