-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Alexander Golodkov <[email protected]> Co-authored-by: Andrew Perminov <[email protected]> Co-authored-by: Bogatenkova Anastasiya <[email protected]>
- Loading branch information
1 parent
5750d57
commit 8a2678c
Showing
34 changed files
with
957 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
ARG REPOSITORY="docker.io" | ||
FROM dedocproject/dedoc_p3.9_base:version_2023_08_28 | ||
ARG LANGUAGES="" | ||
RUN for lang in $LANGUAGES; do apt install -y tesseract-ocr-$lang; done | ||
RUN for lang in $LANGUAGES; do apt install -y tesseract-ocr-$(echo $lang | tr "_" "-"); done | ||
|
||
ENV PYTHONPATH "${PYTHONPATH}:/dedoc_root" | ||
ENV RESOURCES_PATH "/dedoc_root/resources" | ||
|
||
ADD requirements.txt . | ||
COPY requirements.txt . | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
RUN mkdir /dedoc_root | ||
RUN mkdir /dedoc_root/dedoc | ||
ADD dedoc/config.py /dedoc_root/dedoc/config.py | ||
ADD dedoc/download_models.py /dedoc_root/dedoc/download_models.py | ||
COPY dedoc/config.py /dedoc_root/dedoc/config.py | ||
COPY dedoc/download_models.py /dedoc_root/dedoc/download_models.py | ||
RUN python3 /dedoc_root/dedoc/download_models.py | ||
|
||
ADD dedoc /dedoc_root/dedoc | ||
ADD VERSION /dedoc_root | ||
COPY dedoc /dedoc_root/dedoc | ||
COPY VERSION /dedoc_root | ||
RUN echo "__version__ = \"$(cat /dedoc_root/VERSION)\"" > /dedoc_root/dedoc/version.py | ||
|
||
ADD tests /dedoc_root/tests | ||
ADD resources /dedoc_root/resources | ||
|
||
CMD ["python3", "/dedoc_root/dedoc/main.py"] | ||
CMD [ "python3", "/dedoc_root/dedoc/main.py" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.2.4 | ||
2.2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.