Guest User

Untitled

a guest
Jul 1st, 2019
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.48 KB | None | 0 0
  1. FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
  2. MAINTAINER Vladislav Belavin <belavin@phystech.edu>
  3.  
  4. # basic setup
  5. SHELL ["/bin/bash", "-c"]
  6.  
  7. # update
  8. RUN apt-get -y update && \
  9.     apt-get install -y --no-install-recommends software-properties-common && \
  10.     apt-get -y update && \
  11.     apt-get install -y --no-install-recommends --allow-change-held-packages apt-utils curl \
  12.     bzip2 gcc git wget g++ build-essential zip unzip libc6-dev make pkg-config  \
  13.     libcudnn7 libnccl2 libnccl-dev && \
  14.     apt-get clean -y && rm -rf /var/lib/apt/lists/*
  15.  
  16. # install miniconda + scientific python stack
  17. RUN curl -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
  18.     bash Miniconda3-latest-Linux-x86_64.sh -b -p /root/miniconda && rm Miniconda3-latest-Linux-x86_64.sh
  19. # activate
  20. ENV PATH /root/miniconda/bin:$PATH
  21.  
  22. RUN conda update -n base conda && pip install --upgrade pip && conda install python=3.6 && \
  23.     conda config --add channels conda-forge && \
  24.     conda install -y pip numpy scikit-learn scipy jupyter matplotlib tqdm pandas tqdm psutil Cython numpy pyyaml setuptools cmake cffi typing && \
  25.     conda install pytorch torchvision cudatoolkit=9.0 -c pytorch && \
  26.     conda clean --all -y && \
  27.     rm -rf ~/.cache/pip
  28.  
  29. RUN pip install pyro-ppl schema timeout_decorator
  30.  
  31. WORKDIR /root
  32.  
  33. RUN jupyter notebook --generate-config
  34.  
  35. USER root
  36. EXPOSE 8888
  37.  
  38. WORKDIR /root/workdir
  39. ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--allow-root"]
Advertisement
Add Comment
Please, Sign In to add comment