From b0e4e9ed1a25f163dab45980cc5a32bcb0dacee9 Mon Sep 17 00:00:00 2001 From: adamjanovsky Date: Mon, 4 Apr 2022 18:01:25 +0200 Subject: Refactor/pdftotext as library (#183) - Update Docker Ubuntu to 22.04 - Test pipeline now installs fresh Poppler - Poppler-utils package no longer needed - Paragraph on project dependencies added to CONTRIBUTING.md - Pdftotext is no longer called with subprocess call, but API is leveraged instead--- docker/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docker') diff --git a/docker/Dockerfile b/docker/Dockerfile index 3efb0465..c691716c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu +FROM ubuntu:jammy ENV USER="user" ENV HOME /home/${USER} @@ -10,13 +10,11 @@ RUN apt-get install python3-pip -y RUN apt-get install python3-venv -y RUN apt-get install git -y RUN apt-get install curl -y -RUN apt-get install python3.8-venv -y # Install dependencies fo PyPDF2 and pdftotext RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata -RUN apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev poppler-utils -y +RUN apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev -y RUN apt-get install libqpdf-dev -y -RUN apt-get install pkg-config -y RUN apt-get install default-jdk -y RUN apt-get install graphviz -y @@ -42,6 +40,7 @@ ENV PATH="${VENV_PATH}/bin:$PATH" # Install dependencies, notebook is because of mybinder.org RUN \ + pip3 install -U pip && \ pip3 install wheel && \ pip3 install -r requirements.txt && \ pip3 install --no-cache notebook -- cgit v1.3.1