Skip to content

Commit 552b892

Browse files
authored
fix add tesseract bin to container & bump poetry (#1676)
* Add tesseract bin to container * Add tesseract bin
1 parent 1bbc5d4 commit 552b892

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ RUN apt-get update \
3434
build-essential \
3535
libpq-dev \
3636
libwebp-dev \
37+
tesseract-ocr-all \
3738
# LDAP Dependencies
3839
libsasl2-dev libldap2-dev libssl-dev \
3940
gnupg gnupg2 gnupg1 \
4041
&& pip install -U --no-cache-dir pip
4142

4243
# install poetry - respects $POETRY_VERSION & $POETRY_HOME
43-
ENV POETRY_VERSION=1.1.6
44+
ENV POETRY_VERSION=1.2.1
4445
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
4546

4647
# copy project requirement files here to ensure they will be cached.
@@ -98,6 +99,7 @@ ENV GIT_COMMIT_HASH=$COMMIT
9899
RUN apt-get update \
99100
&& apt-get install --no-install-recommends -y \
100101
curl gosu \
102+
tesseract-ocr-all \
101103
&& apt-get autoremove \
102104
&& rm -rf /var/lib/apt/lists/*
103105

frontend/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPageParts/RecipeOcrEditorPageCanvas.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
>
3434
</canvas>
3535
<span style="white-space: pre-wrap">
36-
{{ selectedText }}
36+
{{ selectedText.trim() }}
3737
</span>
3838
</v-card>
3939
</template>

0 commit comments

Comments
 (0)