Download docker.txt from jkushwaha/code: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/jkushwaha/code/resolve/main/docker.txt
- Command line
-
hf download hf://jkushwaha/code/docker.txt
-
curl -L -o docker.txt https://huggingface.co/jkushwaha/code/resolve/main/docker.txt
440 Bytes
| RUN apt-get update && apt-get install -y wget | |
| RUN wget www.leptonica.org/source/leptonica-1.78.0.tar.gz | |
| RUN tar -xvzf leptonica-1.78.0.tar.gz | |
| WORKDIR /leptonica-1.78.0 | |
| 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 |