Skip to content

Commit

Permalink
Merge pull request #99 from Michele-Alberti/development
Browse files Browse the repository at this point in the history
🧊 Improve Tesseract installation process
  • Loading branch information
Michele-Alberti authored Feb 4, 2024
2 parents 094bb18 + e9a3e72 commit 7fb7228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions docker/web/Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,9 @@ RUN apt update && apt install -y \
dnsutils \
gcc \
libpq-dev \
&& echo "deb https://notesalexp.org/tesseract-ocr5/$(lsb_release -cs)/ $(lsb_release -cs) main" \
| tee /etc/apt/sources.list.d/notesalexp.list > /dev/null \
&& apt update -oAcquire::AllowInsecureRepositories=true \
&& apt install -y notesalexp-keyring -oAcquire::AllowInsecureRepositories=true --allow-unauthenticated \
&& apt update && apt install -y \
tesseract-ocr \
tesseract-ocr-ita \
&& apt-get clean all && rm -rf /var/lib/apt/lists/*
&& apt clean all && rm -rf /var/lib/apt/lists/*

# Copy requirements
COPY requirements/requirements.txt /app/requirements/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tenacity==8.2.2
tqdm==4.65.0
panel==1.3.6
sqlalchemy==2.0.23
psycopg[binary]==3.1.16
psycopg==3.1.16
hydra-core==1.3.2
google-cloud-storage==2.6.0
pytesseract==0.3.10

0 comments on commit 7fb7228

Please sign in to comment.