Skip to content

Commit 3d85950

Browse files
committed
Add support for 7zip
1 parent aef6592 commit 3d85950

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Dockerfile.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ RUN mkdir -p /root/.EasyOCR/model && \
528528
rm /root/.EasyOCR/model/craft_mlt_25k.zip && \
529529
/tmp/clean-layer.sh
530530

531+
# Add 7z support
532+
RUN apt-get install -y p7zip-full
533+
531534
# Tesseract and some associated utility packages
532535
RUN apt-get install tesseract-ocr -y && \
533536
pip install pytesseract && \

tests/test_7z.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import subprocess
2+
import unittest
3+
4+
5+
class Test7z(unittest.TestCase):
6+
def test_basic(self):
7+
result = subprocess.run('which 7z', shell=True, capture_output=True)
8+
assert len(result.stdout) > 0

0 commit comments

Comments
 (0)