Skip to content

Commit

Permalink
Use Ubuntu focal
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 17, 2020
1 parent 2501727 commit 44015cc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
@@ -1,13 +1,13 @@
FROM ubuntu:cosmic as base-dist
FROM ubuntu:focal as base-dist

ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install --assume-yes --no-install-recommends \
python3 graphicsmagick pdftk-java vim \
tesseract-ocr tesseract-ocr-fra tesseract-ocr-deu tesseract-ocr-eng \
libimage-exiftool-perl software-properties-common \
python3-pip python3-setuptools && \
python3 graphicsmagick pdftk-java vim \
tesseract-ocr tesseract-ocr-fra tesseract-ocr-deu tesseract-ocr-eng \
libimage-exiftool-perl software-properties-common \
python3-pip python3-setuptools && \
python3 -m pip install PyYaml numpy scipy scikit-image opencv-python-headless deskew && \
apt-get auto-remove --assume-yes python3-pip python3-setuptools && \
apt-get clean && \
Expand All @@ -16,7 +16,7 @@ RUN \
CMD ["/opt/process"]

VOLUME /source \
/destination
/destination

ENV LANG=C.UTF-8

Expand All @@ -27,7 +27,7 @@ RUN \
. /etc/os-release && \
apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends \
python3-wheel python3-pip python3-setuptools poppler-utils ghostscript graphviz
python3-wheel python3-pip python3-setuptools poppler-utils ghostscript graphviz
RUN python3 -m pip install 'pytest<4.0.0' pylint pyflakes bandit mypy codespell coverage pytest-profiling

WORKDIR /opt
Expand All @@ -51,6 +51,6 @@ RUN \
. /etc/os-release && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends \
tesseract-ocr-all && \
tesseract-ocr-all && \
apt-get clean && \
rm --recursive --force /var/lib/apt/lists/* /var/cache/*

0 comments on commit 44015cc

Please sign in to comment.