| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- FROM jupyter/minimal-notebook:latest
- # Install simpy
- RUN /opt/conda/bin/conda install sympy
- # Install scipy
- RUN /opt/conda/bin/conda install scipy
- USER root
- # Install Julia 0.6
- RUN mkdir /opt/julia && \
- cd /opt/julia && \
- wget --quiet https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.4-linux-x86_64.tar.gz && \
- tar -xzf julia-0.6.4-linux-x86_64.tar.gz --directory . --strip-components=1 && \
- ln -s /opt/julia/bin/julia /usr/bin/julia && \
- julia --version
- RUN mkdir /opt/bondgraphs
- COPY test_bondgraphs.py /opt/bondgraphs/
- # Install BondGraphTools and run test file (forces installation of dependencies)
- RUN apt-get update -y && \
- apt-get install -y dvipng && \
- pip install BondGraphTools && \
- python3 /opt/bondgraphs/test_bondgraphs.py
- # Install Graphviz
- RUN /opt/conda/bin/conda install -y graphviz python-graphviz
- # Create remote notebook folder
- RUN mkdir /opt/notebooks
- WORKDIR /opt/notebooks/
- # Port
- EXPOSE 8888
- CMD ["bash"]
|