Download Dockerfile from jkushwaha/code: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/jkushwaha/code/resolve/main/Dockerfile
- Command line
-
hf download hf://jkushwaha/code/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/jkushwaha/code/resolve/main/Dockerfile
1.44 kB
| FROM python:3.7.9 | |
| COPY requirements.txt /genome_inbound_automation/requirements.txt | |
| WORKDIR /genome_inbound_automation | |
| RUN pip install -r requirements.txt | |
| RUN sed -i 's/<policy domain="coder" rights="none" pattern="PDF"/<policy domain="coder" rights="read" pattern="PDF"/g' /etc/ImageMagick-6/policy.xml | |
| RUN sed -i 's/<policy domain="resource" name="memory" value="256MiB"/<policy domain="resource" name="memory" value="2GiB"/g' /etc/ImageMagick-6/policy.xml | |
| RUN sed -i 's/<policy domain="resource" name="disk" value="1GiB"/<policy domain="resource" name="disk" value="8GiB"/g' /etc/ImageMagick-6/policy.xml | |
| RUN apt-get -y update && apt-get -y install ghostscript | |
| RUN apt-get update && apt-get install -y wget | |
| RUN wget www.leptonica.org/source/leptonica-1.84.1.tar.gz | |
| RUN tar -xvzf leptonica-1.84.1.tar.gz | |
| WORKDIR leptonica-1.84.1 | |
| RUN ./configure | |
| RUN make | |
| RUN make install | |
| WORKDIR / | |
| RUN git clone https://github.com/tesseract-ocr/tesseract.git | |
| WORKDIR /tesseract | |
| RUN ./autogen.sh | |
| RUN ./configure | |
| RUN make | |
| RUN make install | |
| RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ffmpeg | |
| RUN ldconfig | |
| COPY ./src /genome_inbound_automation | |
| RUN chmod 777 /genome_inbound_automation/batchjob.sh | |
| RUN mkdir -p /usr/local/share/tessdata | |
| RUN wget https://github.com/tesseract-ocr/tessdata/raw/4.00/eng.traineddata -O /usr/local/share/tessdata/eng.traineddata | |
| ENV TESSDATA_PREFIX=/usr/local/share/tessdata/ | |
| WORKDIR / | |
| # CMD sh g360Inbound.sh | |