Skip to content

Commit

Permalink
Update docker file to python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
wasserth committed Sep 17, 2019
1 parent 86ffd68 commit e4b575a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ matrix:
env:
- PYTORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.1.0-cp35-cp35m-linux_x86_64.whl
- PYTHON_VERS=3.5
- python: "3.6"
env:
- PYTORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl
- PYTHON_VERS=3.6
before_install:
- pip install $PYTORCH_URL
install:
Expand Down
16 changes: 6 additions & 10 deletions Dockerfile_CPU
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Generated by Neurodocker version 0.4.0
# Timestamp: 2018-06-22 09:08:27 UTC
#
# Thank you for using Neurodocker. If you discover any issues
# or ways to improve this software, please submit an issue or
# pull request on our GitHub repository:
#
# https://github.com/kaczmarj/neurodocker
# https://github.com/kaczmarj/neurodocker

FROM neurodebian:stretch-non-free

Expand Down Expand Up @@ -68,14 +63,15 @@ RUN echo '{ \
\n}' > /neurodocker/neurodocker_specs.json

RUN apt-get update \
&& apt-get -y install git g++ python python-numpy libeigen3-dev zlib1g-dev libqt4-opengl-dev libgl1-mesa-dev libfftw3-dev libtiff5-dev curl \
&& apt-get -y install git-core python-setuptools python-dev build-essential \
&& apt-get -y install git g++ python3 libeigen3-dev zlib1g-dev libqt4-opengl-dev \
&& apt-get -y install libgl1-mesa-dev libfftw3-dev libtiff5-dev curl \
&& apt-get -y install git-core python3-pip python3-dev build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN easy_install pip \
RUN pip3 install --upgrade pip \
&& pip install wheel numpy scipy nilearn matplotlib scikit-image nibabel \
&& pip install https://download.pytorch.org/whl/cpu/torch-1.0.0-cp27-cp27mu-linux_x86_64.whl
&& pip install http://download.pytorch.org/whl/cpu/torch-1.1.0-cp35-cp35m-linux_x86_64.whl

RUN mkdir -p ~/.tractseg \
&& mkdir -p /code \
Expand Down

0 comments on commit e4b575a

Please sign in to comment.