Dockerfile 706 B

12345678910111213141516171819202122232425262728
  1. FROM jupyter/minimal-notebook:latest
  2. # Install fmipy
  3. RUN /opt/conda/bin/conda install -c conda-forge fmpy -y --quiet
  4. # Install simpy
  5. RUN /opt/conda/bin/conda install sympy
  6. # Install scipy
  7. RUN /opt/conda/bin/conda install scipy
  8. USER root
  9. # Copy local files to the remote notebooks
  10. RUN mkdir /opt/notebooks
  11. COPY tutorial /opt/notebooks/tutorial
  12. COPY fmus/linux/ /opt/notebooks/fmus
  13. COPY cosimlibrary /opt/notebooks/cosimlibrary
  14. COPY solutions /opt/notebooks/solutions
  15. WORKDIR /opt/notebooks/
  16. # Port
  17. EXPOSE 8888
  18. # Run Jupyter Notebook
  19. CMD ["/opt/conda/bin/jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]