Commit 6624b5df authored by Daniele Venzano's avatar Daniele Venzano

Use pytorch image and add jupyter

parent 54f9e98c
Pipeline #5624 passed with stages
in 35 minutes and 2 seconds
FROM jupyter/datascience-notebook:latest
FROM nvidia/cuda:8.0-cudnn7-devel-ubuntu16.04
MAINTAINER Daniele Venzano <venza@brownhat.org>
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
curl \
vim \
ca-certificates \
libjpeg-dev \
libpng-dev &&\
rm -rf /var/lib/apt/lists/*
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
chmod +x ~/miniconda.sh && \
~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda install numpy pyyaml scipy ipython jupyter mkl mkl-include && \
/opt/conda/bin/conda install -c soumith magma-cuda80 && \
/opt/conda/bin/conda clean -ya
ENV PATH /opt/conda/bin:$PATH
RUN conda install pytorch torchvision -c pytorch
CMD jupyter notebook --NotebookApp.token='' --allow-root --ip=0.0.0.0
RUN pip install http://download.pytorch.org/whl/cu80/torch-0.3.1-cp36-cp36m-linux_x86_64.whl
RUN pip install torchvision
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment