DockerfileTutorials45 552 B

12345678910111213141516171819202122
  1. FROM mechatronics3d/jjmodelica
  2. USER root
  3. # Copy local files to the remote notebooks
  4. RUN mkdir /opt/notebooks
  5. COPY 4-Modelica /opt/notebooks/4-Modelica
  6. WORKDIR /opt/notebooks/
  7. # Port
  8. EXPOSE 8888
  9. # Run Jupyter Notebook
  10. CMD ["jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip=0.0.0.0", "--port=8888", "--no-browser"]
  11. # Uncomment to access command line on the docker container
  12. # CMD ["bash"]
  13. # to start jupyter run:
  14. # jupyter notebook --notebook-dir=/opt/notebooks --ip=0.0.0.0 --port=8888 --no-browser --allow-root