Skip to content

Commit

Permalink
Update package list
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs committed Jun 17, 2024
1 parent bb94898 commit 92852f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
8 changes: 0 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ ARG branch=latest
FROM cccs/assemblyline-v4-service-base:$branch

ENV SERVICE_PATH pixaxe.pixaxe.Pixaxe
ENV TESSERACT_VERSION 5.3.0

# Switch to root user
USER root
Expand All @@ -11,13 +10,6 @@ USER root
COPY pkglist.txt pkglist.txt
RUN apt-get update && grep -vE '^#' pkglist.txt | xargs apt-get install -y && rm -rf /var/lib/apt/lists/*

# Install Tesseract from source
RUN wget https://github.com/tesseract-ocr/tesseract/archive/refs/tags/${TESSERACT_VERSION}.tar.gz
RUN tar -xvf ${TESSERACT_VERSION}.tar.gz
WORKDIR tesseract-${TESSERACT_VERSION}
RUN ./autogen.sh && ./configure --disable-dependency-tracking && make && make install && ldconfig
RUN wget https://raw.githubusercontent.com/tesseract-ocr/tessdata/main/eng.traineddata -O /usr/local/share/tessdata/eng.traineddata

# Switch to assemblyline user
USER assemblyline

Expand Down
12 changes: 1 addition & 11 deletions pkglist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,7 @@ libmagickwand-dev
libgl1

# Tesseract
g++
autoconf
automake
libtool
pkg-config
libpng-dev
libtiff5-dev
zlib1g-dev
libleptonica-dev
libpango1.0-dev
build-essential
tesseract-ocr

# Used for decoding QR codes
zbar-tools
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Pillow
numpy
numpy<2
scipy
matplotlib
pytesseract
stegano
wand
cairosvg
multidecoder
opencv-python
opencv-python

0 comments on commit 92852f6

Please sign in to comment.