From fdbe789b8da2b6423b6b120734fa9109ed393d0d Mon Sep 17 00:00:00 2001 From: Riccardo Date: Wed, 25 Sep 2019 19:00:57 -0700 Subject: [PATCH] use python 3 in Docker container --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1a0d924661d6ce..999f94268b85e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y \ libtool \ libtool-bin \ libusb-1.0-0 \ + locales \ make \ ncurses-dev \ network-manager \ @@ -40,6 +41,18 @@ RUN apt-get update && apt-get install -y \ wget \ wireless-tools +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 + +RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash + +ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}" +RUN pyenv install 3.7.3 +RUN pyenv global 3.7.3 +RUN pyenv rehash + RUN pip install --upgrade pip==18.0 COPY requirements.txt /tmp/