diff --git a/Dockerfile b/Dockerfile index d04564a..709b823 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,30 @@ -FROM andrewosh/binder-base - -MAINTAINER Kozo Nishida +FROM jupyter/base-notebook:latest USER root -# Add ecell4 dependencies -RUN apt-get update -RUN apt-get install -y build-essential ruby ruby-dev libzmq3 libzmq3-dev gnuplot-nox libgsl0-dev libtool autoconf automake zlib1g-dev libsqlite3-dev libmagick++-dev imagemagick libatlas-base-dev && apt-get clean -RUN ln -s /usr/bin/libtoolize /usr/bin/libtool # See https://github.com/zeromq/libzmq/issues/1385 +RUN apt-get update && \ + apt-get install -y build-essential \ + ruby2.5 ruby2.5-dev libzmq3-dev gnuplot-nox libgsl-dev libtool autoconf make \ + automake zlib1g-dev libsqlite3-dev libmagick++-dev imagemagick \ + libatlas-base-dev g++ libczmq-dev libffi-dev libtool-bin cmake git && \ + apt-get gnuplot-x11 clean + +# See https://github.com/methodmissing/rbczmq/issues/64 +RUN CPPFLAGS='-Wno-error=deprecated-declarations' gem install rbczmq -v '1.7.9' +RUN gem install nmatrix daru cztop iruby gnuplotrb gruff +RUN gem install specific_install +RUN gem specific_install https://github.com/SciRuby/daru.git +RUN gem install nyaplot +# RUN ls && ls && gem specific_install https://github.com/lokeshh/sciruby.git master + +RUN gem install narray nmatrix gsl +RUN gem specific_install https://github.com/lokeshh/statsample-glm.git upgrade_daru +# RUN gem update --no-document --system && gem install --no-document sciruby-full + +USER $NB_UID -RUN gem update --no-document --system && gem install --no-document sciruby-full +RUN iruby register --force -USER main +COPY . . -RUN iruby register \ No newline at end of file +ENTRYPOINT jupyter-notebook \ No newline at end of file