Skip to content

Commit

Permalink
Workaround for fixing UTF8 issues
Browse files Browse the repository at this point in the history
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
  • Loading branch information
petrovm3 authored Nov 27, 2019
1 parent 5a2e1b6 commit b923c0d
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b923c0d

Please sign in to comment.