Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu:18.04
- # basic setup
- SHELL ["/bin/bash", "-c"]
- # update
- RUN apt-get -y update && \
- apt-get install -y --no-install-recommends software-properties-common && \
- add-apt-repository ppa:gophers/archive && \
- apt-get -y update && \
- apt-get install -y --no-install-recommends apt-utils curl \
- bzip2 gcc git wget g++ build-essential libc6-dev make pkg-config \
- golang-1.10-go libzmq3-dev \
- libsm6 libxext6 libxrender-dev locales
- RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
- dpkg-reconfigure --frontend=noninteractive locales && \
- update-locale LANG=en_US.UTF-8
- RUN sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \
- dpkg-reconfigure --frontend=noninteractive locales && \
- locale-gen ru_RU.UTF-8 && \
- update-locale LANG=ru_RU.UTF-8
- ENV LANGUAGE ru_RU:ru
- ENV LANG ru_RU.UTF-8
- ENV LC_ALL ru_RU.UTF-8
- # Golang
- ENV GOPATH /go
- ENV PATH $GOPATH/bin:/usr/lib/go-1.10/bin:$PATH
- # miniconda + scientific python stack
- RUN curl -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
- RUN bash Miniconda3-latest-Linux-x86_64.sh -b -p /root/miniconda
- # activate
- ENV PATH /root/miniconda/bin:$PATH
- RUN conda update -n base conda && pip install --upgrade pip
- RUN conda install python=3.6
- RUN conda install -y pip numpy scipy jupyter matplotlib tqdm pandas seaborn tqdm psutil
- RUN conda install -y pytorch-cpu torchvision-cpu -c pytorch
- # zeromq
- # RUN go get github.com/pebbe/zmq4
- # python packages
- RUN pip install pyzmq pywavelets schema pyro-ppl schema timeout_decorator jupyter_contrib_nbextensions
- # influxdb
- 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
- # R
- RUN conda install -c conda-forge rpy2 r-dtw r-irkernel r-gss r-ggplot2 r-extrafont
- RUN Rscript -e "IRkernel::installspec()"
- WORKDIR /root
- RUN jupyter notebook --generate-config
- USER root
- EXPOSE 8888
- # Configure container startup
- # tensorflow Cython
- RUN conda install -y Cython
- # RUN pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
- RUN pip install tensorflow keras
- # skbayes
- # 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/
- # RUN pip install sklearn-bayes
- RUN pip install https://github.com/AmazaspShumik/sklearn_bayes/archive/master.zip
- # GPy
- # RUN git clone https://github.com/SheffieldML/GPy.git && find GPy -name '*.pyx' -exec cython {} \; && pip install GPy/ && rm -rf GPy/
- RUN pip install GPy
- RUN pip install numpy torchvision_nightly
- RUN pip install gpytorch==0.1.0rc5
- RUN Rscript -e "IRkernel::installspec()"
- WORKDIR /root/workdir
- ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--allow-root", "--NotebookApp.token=''"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement