Skip to content

Commit

Permalink
Fix locales in Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jtv8 committed Aug 1, 2017
1 parent dc747b0 commit 87857af
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ RUN apt-get install -y wget
RUN apt-get install -y bzip2
RUN apt-get install -y git

# Set the locale
RUN apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

# Download appropriate version of Miniconda
RUN if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; \
else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile.systest
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@

FROM ubuntu:16.04

# Set the locale
RUN apt-get update
RUN apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

ARG PORT

RUN apt-get update && apt-get install -yq curl && apt-get clean

WORKDIR /app
Expand Down

0 comments on commit 87857af

Please sign in to comment.