Guest User

Untitled

a guest
Jul 1st, 2019
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.41 KB | None | 0 0
  1. FROM ubuntu:18.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.     apt-get clean -y && rm -rf /var/lib/apt/lists/*
  14.  
  15. # install miniconda + scientific python stack
  16. RUN curl -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
  17.     bash Miniconda3-latest-Linux-x86_64.sh -b -p /root/miniconda && rm Miniconda3-latest-Linux-x86_64.sh
  18. # activate
  19. ENV PATH /root/miniconda/bin:$PATH
  20.  
  21. RUN conda update -n base conda && pip install --upgrade pip && conda install python=3.6 && \
  22.     conda config --add channels conda-forge && \
  23.     conda install -y pip numpy scikit-learn scipy jupyter matplotlib tqdm pandas tqdm psutil Cython numpy pyyaml setuptools cmake cffi typing && \
  24.     conda install pytorch-cpu torchvision-cpu -c pytorch && \
  25.     conda clean --all -y && \
  26.     rm -rf ~/.cache/pip
  27.  
  28. RUN pip install pyro-ppl schema timeout_decorator
  29.  
  30. WORKDIR /root
  31.  
  32. RUN jupyter notebook --generate-config
  33.  
  34. USER root
  35. EXPOSE 8888
  36.  
  37. WORKDIR /root/workdir
  38. ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--allow-root"]
Advertisement
Add Comment
Please, Sign In to add comment