From b923c0d9afd445c6ce1dcdb113946e645fcd7a77 Mon Sep 17 00:00:00 2001 From: petrovm3 Date: Wed, 27 Nov 2019 13:17:46 +0100 Subject: [PATCH] Workaround for fixing UTF8 issues Problem related to UnicodeDecodeError : ascii codec can't decode byte. Solved by adding a few docker lines the lines above. https://stackoverflow.com/questions/47013840/docker-compose-up-giving-error-unicodedecodeerror-ascii-codec-cant-decode-by --- Dockerfile | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index d98383a..7a08490 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,25 @@ FROM ubuntu -RUN apt-get update && \ - apt-get install -y git python3-pip python3.6 && \ - apt-get install -y openslide-tools +RUN apt-get update \ + && apt-get install -y git python3-pip python3.6 \ + && apt-get install -y openslide-tools + +# uncomment: + # 1 - this additional RUN only if you are facing issues with UTF8 when running your container + # 2 - all ENV variables in comment + + #RUN apt-get update -y \ + # && apt-get install --reinstall -y locales \ + # # uncomment chosen locale to enable it's generation + # && sed -i 's/# pl_PL.UTF-8 UTF-8/pl_PL.UTF-8 UTF-8/' /etc/locale.gen \ + # # generate chosen locale + # && locale-gen pl_PL.UTF-8 + + ## set system-wide locale settings + #ENV LANG pl_PL.UTF-8 + #ENV LANGUAGE pl_PL + #ENV LC_ALL pl_PL.UTF-8 RUN cd /opt \ - git clone https://github.com/choosehappy/HistoQC.git \ - pip3 install -r /opt/HistoQC/requirements.txt + && git clone https://github.com/choosehappy/HistoQC.git \ + && pip3 install -r /opt/HistoQC/requirements.txt