Advertisement
Acapello

Untitled

Feb 13th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. FROM ubuntu:18.04
  2.  
  3. # basic setup
  4. SHELL ["/bin/bash", "-c"]
  5.  
  6. # update
  7. RUN apt-get -y update && \
  8. apt-get install -y --no-install-recommends software-properties-common && \
  9. add-apt-repository ppa:gophers/archive && \
  10. apt-get -y update && \
  11. apt-get install -y --no-install-recommends apt-utils curl \
  12. bzip2 gcc git wget g++ build-essential libc6-dev make pkg-config \
  13. golang-1.10-go libzmq3-dev \
  14. libsm6 libxext6 libxrender-dev locales
  15.  
  16. RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
  17. dpkg-reconfigure --frontend=noninteractive locales && \
  18. update-locale LANG=en_US.UTF-8
  19.  
  20. RUN sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \
  21. dpkg-reconfigure --frontend=noninteractive locales && \
  22. locale-gen ru_RU.UTF-8 && \
  23. update-locale LANG=ru_RU.UTF-8
  24. ENV LANGUAGE ru_RU:ru
  25. ENV LANG ru_RU.UTF-8
  26. ENV LC_ALL ru_RU.UTF-8
  27.  
  28. # Golang
  29. ENV GOPATH /go
  30. ENV PATH $GOPATH/bin:/usr/lib/go-1.10/bin:$PATH
  31.  
  32. # miniconda + scientific python stack
  33. RUN curl -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
  34. RUN bash Miniconda3-latest-Linux-x86_64.sh -b -p /root/miniconda
  35.  
  36. # activate
  37. ENV PATH /root/miniconda/bin:$PATH
  38.  
  39. RUN conda update -n base conda && pip install --upgrade pip
  40. RUN conda install python=3.6
  41.  
  42. RUN conda install -y pip numpy scipy jupyter matplotlib tqdm pandas seaborn tqdm psutil
  43. RUN conda install -y pytorch-cpu torchvision-cpu -c pytorch
  44.  
  45. # zeromq
  46. # RUN go get github.com/pebbe/zmq4
  47. # python packages
  48. RUN pip install pyzmq pywavelets schema pyro-ppl schema timeout_decorator jupyter_contrib_nbextensions
  49.  
  50. # influxdb
  51. RUN wget https://dl.influxdata.com/influxdb/releases/influxdb_1.6.2_amd64.deb && dpkg -i influxdb_1.6.2_amd64.deb && pip install influxdb
  52.  
  53. # R
  54. RUN conda install -c conda-forge rpy2 r-dtw r-irkernel r-gss r-ggplot2 r-extrafont
  55.  
  56. RUN Rscript -e "IRkernel::installspec()"
  57. WORKDIR /root
  58.  
  59. RUN jupyter notebook --generate-config
  60.  
  61. USER root
  62. EXPOSE 8888
  63.  
  64. # Configure container startup
  65.  
  66. # tensorflow Cython
  67. RUN conda install -y Cython
  68.  
  69. # RUN pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
  70.  
  71. RUN pip install tensorflow keras
  72.  
  73. # skbayes
  74. # RUN git clone https://github.com/AmazaspShumik/sklearn-bayes.git && find sklearn-bayes -name '*.pyx' -exec cython {} \; && pip install sklearn-bayes/ && rm -rf sklearn-bayes/
  75. # RUN pip install sklearn-bayes
  76. RUN pip install https://github.com/AmazaspShumik/sklearn_bayes/archive/master.zip
  77.  
  78. # GPy
  79. # RUN git clone https://github.com/SheffieldML/GPy.git && find GPy -name '*.pyx' -exec cython {} \; && pip install GPy/ && rm -rf GPy/
  80. RUN pip install GPy
  81.  
  82. RUN pip install numpy torchvision_nightly
  83.  
  84. RUN pip install gpytorch==0.1.0rc5
  85.  
  86. RUN Rscript -e "IRkernel::installspec()"
  87. WORKDIR /root/workdir
  88. ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--allow-root", "--NotebookApp.token=''"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement