From 52f8826187d0f1a7d611ab71124b74f5411dbb64 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Sun, 30 Jul 2023 06:46:35 -0400 Subject: [PATCH] More env setup to make it easier --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a2ffff3..8c48fec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,12 @@ RUN apt update && apt install -y perlbrew curl RUN perlbrew init && perlbrew install --verbose perl-5.38.0 RUN perlbrew use perl-5.38.0 -RUN echo "source /root/perl5/perlbrew/etc/bashrc && perlbrew switch current" >> ~/.bashrc +RUN echo "source /root/perl5/perlbrew/etc/bashrc && perlbrew switch perl-5.38.0" >> ~/.bashrc + +ENV PERLBREW_ROOT=/root/perl5/perlbrew +ENV PERLBREW_HOME=/root/.perlbrew +ENV PERLBREW_PATH=/root/perl5//perlbrew/bin:/root/perl5/perlbrew/perls/perl-5.38.0/bin +ENV PATH=${PERLBREW_PATH}:${PATH} +ENV PERLBREW_MANPATH=/root/perl5/perlbrew/perls/perl-5.38.0/man RUN perlbrew install-cpanm