Dockerfile 605 B

123456789101112131415161718192021
  1. # Use Anaconda as base container
  2. FROM continuumio/anaconda3:latest
  3. # Install Jupyter
  4. RUN /opt/conda/bin/conda install jupyter -y --quiet
  5. # Install fmipy
  6. RUN /opt/conda/bin/conda install -c conda-forge fmpy -y --quiet
  7. # Copy local files to the remote notebooks
  8. RUN mkdir /opt/notebooks
  9. COPY examples /opt/notebooks/examples
  10. COPY fmus /opt/notebooks/fmus
  11. COPY cosimlibrary /opt/notebooks/cosimlibrary
  12. # Port
  13. EXPOSE 8888
  14. # Run Jupyter Notebook
  15. CMD ["/opt/conda/bin/jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]