Skip to content

Commit bafc3f1

Browse files
authored
Merge pull request #76 from CogitoNTNU/tango-scraper
Tango scraper
2 parents 888ad33 + 070e299 commit bafc3f1

29 files changed

+1763
-1
lines changed

backend/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ WORKDIR /code
1111
COPY requirements.txt /code/
1212
RUN pip install -r requirements.txt
1313

14+
# Install Tesseract OCR using apt-get
15+
RUN apt-get update && \
16+
apt-get install -y \
17+
build-essential \
18+
python3-dev \
19+
python3-setuptools \
20+
libgl1-mesa-glx \
21+
tesseract-ocr \
22+
tesseract-ocr-nor \
23+
make \
24+
gcc \
25+
&& python3 -m pip install -r requirements.txt \
26+
&& apt-get remove -y --purge make gcc build-essential \
27+
&& apt-get autoremove -y \
28+
&& rm -rf /var/lib/apt/lists/*
29+
30+
1431
# Then copy the rest of the code
1532
COPY . /code/
1633

backend/flashcards/text_scraper/__init__.py

Whitespace-only changes.
107 KB
Loading
356 KB
Loading
417 KB
Loading
343 KB
Loading
Binary file not shown.
83.7 KB
Loading
Binary file not shown.
310 KB
Loading

0 commit comments

Comments
 (0)