forked from manykarim/robotframework-doctestlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (28 loc) · 1012 Bytes
/
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
34
FROM python:3
MAINTAINER Many Kasiriha <[email protected]>
LABEL DocTest Library for Robot Framework in Docker
ARG release_name=gs952
ARG archive_name=ghostpcl-9.52-linux-x86_64
#COPY requirements.txt /tmp/requirements.txt
COPY ./ /tmp/robotframework-doctestlibrary
RUN pip install --no-cache-dir numpy
#RUN pip install --no-cache-dir -r /tmp/requirements.txt
WORKDIR /tmp/robotframework-doctestlibrary
RUN python setup.py install
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 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 /