From 0f700fcdb444d65dcfda83370bc0abec13ac46cf Mon Sep 17 00:00:00 2001 From: Brendan Dwyer Date: Wed, 19 Feb 2020 14:15:15 -0800 Subject: [PATCH 1/3] Bump MAX Base --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index daed411..bd98a7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM codait/max-base:v1.1.3 +FROM codait/max-base:v1.3.2 RUN apt-get update \ && apt-get install -y \ From a6cf783512ecc42ba9927379bae9f26f4ae8a1e4 Mon Sep 17 00:00:00 2001 From: Brendan Dwyer Date: Wed, 19 Feb 2020 15:13:22 -0800 Subject: [PATCH 2/3] fix segmentation fault --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index bd98a7f..036314e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,4 +20,6 @@ COPY . /workspace EXPOSE 5000 +ENV LC_ALL=C + CMD python /workspace/app.py From dfb8b0d2da889d49650c7a60a3cca7e3225de2e0 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Wed, 19 Feb 2020 15:50:14 -0800 Subject: [PATCH 3/3] Add explanation why we need LC_ALL=C Co-Authored-By: Brendan Dwyer --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 036314e..ad8cb1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ COPY . /workspace EXPOSE 5000 +# this is needed for tesseract versions prior to 4.1 (https://github.com/tesseract-ocr/tesseract/issues/1670#issuecomment-515324015) ENV LC_ALL=C CMD python /workspace/app.py