From 601d4a82c249772d5c05004d0e27504428260327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Ckpepper=E2=80=9D?= Date: Fri, 30 Aug 2019 13:50:26 +0100 Subject: [PATCH] Added default locale to fix an encoding error generated from getref for the card database when using docker --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index aefacb9f..d392f853 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,8 @@ ARG SPADES_VERSION=3.13.1 ARG ARIBA_TAG=master ARG ARIBA_BUILD_DIR=/ariba +ARG LOCALE_COUNTRY=en_GB + RUN apt-get -qq update && \ apt-get install --no-install-recommends -y \ build-essential \ @@ -28,6 +30,12 @@ RUN apt-get -qq update && \ wget \ zlib1g-dev +# Install locales +RUN apt-get update && apt-get install -y locales-all && rm -rf /var/lib/apt/lists/* +# Set a default locale. +ENV LANG=${LOCALE_COUNTRY}.UTF-8 \ + LANGUAGE=${LOCALE_COUNTRY}:en + # Install bowtie RUN wget -q http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/${BOWTIE2_VERSION}/bowtie2-${BOWTIE2_VERSION}-linux-x86_64.zip \ && unzip bowtie2-${BOWTIE2_VERSION}-linux-x86_64.zip \