jkushwaha commited on
Commit
1e40b9d
·
verified ·
1 Parent(s): 1efb1be

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -14
Dockerfile CHANGED
@@ -1,14 +1,4 @@
1
- # FROM python:3.7.9
2
- FROM scratch
3
-
4
- # Copy the Python 3.7.9 tarball file into the container
5
- COPY python-3.7.9.tgz /python-3.7.9.tgz
6
-
7
- # Extract the Python tarball
8
- RUN tar -xzvf /python-3.7.9.tgz -C /
9
-
10
- # Set the PATH environment variable to include Python
11
- ENV PATH="/python-3.7.9/bin:${PATH}"
12
  COPY requirements.txt /genome_inbound_automation/requirements.txt
13
  WORKDIR /genome_inbound_automation
14
  RUN pip install -r requirements.txt
@@ -21,7 +11,7 @@ RUN apt-get update && apt-get install -y wget
21
  RUN wget www.leptonica.org/source/leptonica-1.84.1.tar.gz
22
  RUN tar -xvzf leptonica-1.84.1.tar.gz
23
  WORKDIR leptonica-1.84.1
24
- RUN ./configure
25
  RUN make
26
  RUN make install
27
 
@@ -29,11 +19,18 @@ WORKDIR /
29
  RUN git clone https://github.com/tesseract-ocr/tesseract.git
30
  WORKDIR /tesseract
31
  RUN ./autogen.sh
32
- RUN ./configure
33
  RUN make
34
  RUN make install
35
  RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ffmpeg
36
  RUN ldconfig
37
 
38
  COPY ./src /genome_inbound_automation
39
- RUN chmod 777 /genome_inbound_automation/batchjob.sh
 
 
 
 
 
 
 
 
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
 
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
 
 
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
30
+
31
+ RUN mkdir -p /usr/local/share/tessdata
32
+ RUN wget https://github.com/tesseract-ocr/tessdata/raw/4.00/eng.traineddata -O /usr/local/share/tessdata/eng.traineddata
33
+
34
+ ENV TESSDATA_PREFIX=/usr/local/share/tessdata/
35
+ WORKDIR /
36
+ # CMD sh g360Inbound.sh