From cc35caabd84f178a50b153ccb9fc05932f402e2a Mon Sep 17 00:00:00 2001 From: Fuzzwah Date: Mon, 26 Feb 2024 15:41:26 +1100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa0f09aa..a267660f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:trusty +FROM ubuntu:focal RUN apt-get update -qq RUN apt-get install -y apt-transport-https @@ -8,18 +8,25 @@ RUN echo "deb https://dl.bintray.com/nxadm/rakudo-pkg-debs `lsb_release -cs` mai RUN apt-get update -qq RUN apt-get install -y \ - perl rakudo-pkg curl git build-essential python python-pip \ + perl rakudo-pkg curl git build-essential \ libssl-dev libreadline-dev zlib1g-dev \ libicu-dev cmake pkg-config +# Add the deadsnakes PPA to get Python 3.11 and install it +RUN add-apt-repository ppa:deadsnakes/ppa && \ + apt-get update && \ + apt-get install -y --no-install-recommends \ + python3.11 + +RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 +RUN pip install python3-docutils + ENV PATH $PATH:/opt/rakudo-pkg/bin RUN install-zef-as-user && zef install Pod::To::HTML RUN curl -L http://cpanmin.us | perl - App::cpanminus RUN cpanm --installdeps --notest Pod::Simple -RUN pip install docutils - ENV PATH $PATH:/root/.rbenv/bin:/root/.rbenv/shims RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash RUN rbenv install 2.4.1