Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
fix: multi line apt install command in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
1hachem committed Mar 18, 2024
1 parent b3a26a1 commit 4554782
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions hyko_toolkit/functions/converters/ocr_pdf_to_text/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ FROM hyko-sdk-medium:latest

ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/5/tessdata

RUN apt-get update && apt-get install -y\
tesseract-ocr\
libtesseract-dev\
tesseract-ocr-fra\
tesseract-ocr-ara &&\
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y tesseract-ocr libtesseract-dev \
tesseract-ocr-fra tesseract-ocr-ara && \
rm -rf /var/lib/apt/lists/*
RUN --mount=type=cache,target=/root/.cache/pip pip install pytesseract
RUN --mount=type=cache,target=/root/.cache/pip pip install pdf2image
RUN --mount=type=cache,target=/root/.cache/pip pip install PyMuPDF
Expand Down

0 comments on commit 4554782

Please sign in to comment.