jkushwaha commited on
Commit
77b8786
·
verified ·
1 Parent(s): ea5b641

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.7.9
2
+ COPY requirements.txt /genome_inbound_automation/requirements.txt
3
+ WORKDIR /genome_inbound_automation
4
+ RUN pip install -r requirements.txt
5
+ RUN sed -i 's/<policy domain="coder" rights="none" pattern="PDF"/<policy domain="coder" rights="read" pattern="PDF"/g' /etc/ImageMagick-6/policy.xml
6
+ RUN sed -i 's/<policy domain="resource" name="memory" value="256MiB"/<policy domain="resource" name="memory" value="2GiB"/g' /etc/ImageMagick-6/policy.xml
7
+ RUN sed -i 's/<policy domain="resource" name="disk" value="1GiB"/<policy domain="resource" name="disk" value="8GiB"/g' /etc/ImageMagick-6/policy.xml
8
+ RUN apt-get -y update && apt-get -y install ghostscript
9
+
10
+ RUN apt-get update && apt-get install -y wget
11
+ RUN wget www.leptonica.org/source/leptonica-1.84.1.tar.gz
12
+ RUN tar -xvzf leptonica-1.84.1.tar.gz
13
+ WORKDIR leptonica-1.84.1
14
+ RUN ./configure
15
+ RUN make
16
+ RUN make install
17
+
18
+ WORKDIR /
19
+ RUN git clone https://github.com/tesseract-ocr/tesseract.git
20
+ WORKDIR /tesseract
21
+ RUN ./autogen.sh
22
+ RUN ./configure
23
+ RUN make
24
+ RUN make install
25
+ RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ffmpeg
26
+ RUN ldconfig
27
+
28
+ COPY ./src /genome_inbound_automation
29
+ RUN chmod 777 /genome_inbound_automation/batchjob.sh