Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Use Python 3.6 in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Apr 17, 2017
1 parent fb55542 commit 38960ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV NPM_CONFIG_LOGLEVEL warn

RUN apt-get update \
RUN echo 'deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu xenial main' > /etc/apt/sources.list.d/fkrull-ubuntu-deadsnakes-xenial.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DB82666C \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
curl \
Expand All @@ -15,18 +17,16 @@ RUN apt-get update \
python-dev \
python-pip \
python-pkg-resources \
python3 \
python3-dev \
python3-setuptools \
python3-pip \
python3-pkg-resources \
python3.6 \
python3.6-dev \
git \
libssl-dev \
openssh-client \
libre2-dev \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python3.6 \
&& pip2 install -U pip setuptools wheel \
&& pip3 install -U pip setuptools wheel cython \
&& pip3 install https://github.com/andreasvc/pyre2/archive/master.zip \
&& python3.6 -m pip install -U pip setuptools wheel cython \
&& python3.6 -m pip install https://github.com/andreasvc/pyre2/archive/master.zip \
&& git config --global user.email "badwolf@localhost" \
&& git config --global user.name "badwolf" \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
Expand All @@ -40,7 +40,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \
babel-eslint

RUN pip2 install -U flake8 pep8 pep8-naming pylint flake8-import-order && \
pip3 install -U badwolf \
python3.6 -m pip install -U badwolf \
&& rm -rf /var/lib/apt/list/* /tmp/* /var/tmp/*

EXPOSE 8000
Expand Down
18 changes: 9 additions & 9 deletions src.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ ENV NPM_CONFIG_LOGLEVEL warn
COPY . /src
WORKDIR /src

RUN apt-get update \
RUN echo 'deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu xenial main' > /etc/apt/sources.list.d/fkrull-ubuntu-deadsnakes-xenial.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DB82666C \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
curl \
Expand All @@ -19,18 +21,16 @@ RUN apt-get update \
python-dev \
python-pip \
python-pkg-resources \
python3 \
python3-dev \
python3-setuptools \
python3-pip \
python3-pkg-resources \
python3.6 \
python3.6-dev \
git \
libssl-dev \
openssh-client \
libre2-dev \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python3.6 \
&& pip2 install -U pip setuptools wheel \
&& pip3 install -U pip setuptools wheel cython \
&& pip3 install https://github.com/andreasvc/pyre2/archive/master.zip \
&& python3.6 -m pip install -U pip setuptools wheel cython \
&& python3.6 -m pip install https://github.com/andreasvc/pyre2/archive/master.zip \
&& git config --global user.email "badwolf@localhost" \
&& git config --global user.name "badwolf" \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
Expand All @@ -45,7 +45,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \

RUN pip2 install -U flake8 pep8 pep8-naming pylint flake8-import-order && \
pip3 install -Ur requirements.txt \
&& pip3 install . \
&& python3.6 -m pip install . \
&& rm -rf /var/lib/apt/list/* /tmp/* /var/tmp/*

EXPOSE 8000
Expand Down

0 comments on commit 38960ec

Please sign in to comment.