-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
33 lines (26 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.9
MAINTAINER Many Kasiriha <manykarim@users.noreply.github.com>
LABEL DocTest Library for Robot Framework in Docker
ARG release_name=gs9561
ARG archive_name=ghostpcl-9.56.1-linux-x86_64
RUN pip install --no-cache-dir numpy
RUN pip install --no-cache-dir robotframework-doctestlibrary
WORKDIR /
RUN apt-get update && apt-get install -y \
imagemagick \
tesseract-ocr \
ghostscript \
wget \
libdmtx0b \
software-properties-common \
gettext-base \
&& rm -rf /var/lib/apt/lists/*
RUN wget -O /usr/share/tesseract-ocr/5/tessdata/eng.traineddata https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata \
&& wget -O /usr/share/tesseract-ocr/5/tessdata/osd.traineddata https://github.com/tesseract-ocr/tessdata/raw/main/osd.traineddata
RUN wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/${release_name}/${archive_name}.tgz \
&& tar -xvzf ${archive_name}.tgz \
&& chmod +x ${archive_name}/gpcl6* \
&& cp ${archive_name}/gpcl6* ${archive_name}/pcl6 \
&& cp ${archive_name}/* /usr/bin
COPY policy.xml /etc/ImageMagick-6/
WORKDIR /