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

Commit

Permalink
feat: updated converters/utils dockerfiles to use new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
strlrd-29 committed Mar 14, 2024
1 parent 606c003 commit 4ce8e16
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hyko-sdk:latest
FROM hyko-sdk-medium:latest

RUN --mount=type=cache,target=/root/.cache/pip pip install pygments
RUN --mount=type=cache,target=/root/.cache/pip pip install fpdf2
Expand Down
9 changes: 7 additions & 2 deletions hyko_toolkit/functions/converters/ocr_pdf_to_text/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
FROM hyko-sdk:latest
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 --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
RUN apt-get update && apt-get install -y tesseract-ocr libtesseract-dev tesseract-ocr-fra tesseract-ocr-ara

COPY . .

Expand Down
2 changes: 1 addition & 1 deletion hyko_toolkit/functions/converters/pdf_to_text/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hyko-sdk:latest
FROM hyko-sdk-medium:latest

RUN --mount=type=cache,target=/root/.cache/pip pip install langchain
RUN --mount=type=cache,target=/root/.cache/pip pip install pypdf
Expand Down
7 changes: 6 additions & 1 deletion hyko_toolkit/functions/converters/video_converter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM hyko-sdk:latest
FROM hyko-sdk-medium:latest

RUN apt-get install\
libgl1\
libgl1-mesa-glx \
libglib2.0-0 -y && \
rm -rf /var/lib/apt/lists/*
RUN --mount=type=cache,target=/root/.cache/pip pip install opencv-python

COPY . .
Expand Down
6 changes: 5 additions & 1 deletion hyko_toolkit/functions/converters/video_to_audio/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM hyko-sdk:latest
FROM hyko-sdk-medium:latest

RUN apt-get install -y \
ffmpeg && \
rm -rf /var/lib/apt/lists/*

COPY . .

Expand Down
2 changes: 1 addition & 1 deletion hyko_toolkit/functions/utils/math_utils/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hyko-sdk:latest
FROM hyko-sdk-tiny:latest

COPY . .

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hyko-sdk:latest
FROM hyko-sdk-tiny:latest

RUN --mount=type=cache,target=/root/.cache/pip pip install langchain

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hyko-sdk:latest
FROM hyko-sdk-tiny:latest

COPY . .

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hyko-sdk:latest
FROM hyko-sdk-tiny:latest

RUN --mount=type=cache,target=/root/.cache/pip pip install nltk

Expand Down
2 changes: 1 addition & 1 deletion hyko_toolkit/functions/utils/text_utils/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hyko-sdk:latest
FROM hyko-sdk-tiny:latest

COPY . .

Expand Down

0 comments on commit 4ce8e16

Please sign in to comment.