Skip to content

Instantly share code, notes, and snippets.

@FabianoCampos
Created May 14, 2024 12:09
Show Gist options
  • Save FabianoCampos/5c76bba6a828454708668739092cbe25 to your computer and use it in GitHub Desktop.
Save FabianoCampos/5c76bba6a828454708668739092cbe25 to your computer and use it in GitHub Desktop.
Processo para gerar imagem docker com tesseract
...
RUN apt update && apt-get install -y libleptonica-dev
RUN ls -la /usr/lib/x86_64-linux-gnu/
WORKDIR /app
RUN mkdir tmp
RUN apt-get install -y automake libtool pkg-config
RUN wget -q https://github.com/tesseract-ocr/tesseract/archive/5.2.0.tar.gz \
&& tar -zxvf 5.2.0.tar.gz -C /app/tmp \
&& rm -f 5.2.0.tar.gz
WORKDIR /app/tmp/tesseract-5.2.0
RUN ./autogen.sh
RUN ./configure
RUN make
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment