You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
860 B

  1. FROM movesrwth/stormpy:1.6.2
  2. MAINTAINER Matthias Volk <matthias.volk@cs.rwth-aachen.de>
  3. ##########
  4. # Create user
  5. ##########
  6. ARG NB_USER=jovyan
  7. ARG NB_UID=1000
  8. ENV USER ${NB_USER}
  9. ENV NB_UID ${NB_UID}
  10. ENV HOME /home/${NB_USER}
  11. RUN adduser --disabled-password \
  12. --gecos "Default user" \
  13. --uid ${NB_UID} \
  14. ${NB_USER}
  15. # Change the owner of the virtual environment
  16. WORKDIR /opt
  17. USER root
  18. RUN chown -R ${NB_UID} venv
  19. USER ${NB_USER}
  20. WORKDIR ${HOME}
  21. # Add missing path
  22. ENV PATH="$HOME/.local/bin:$PATH"
  23. ##########
  24. # Install dependencies
  25. ##########
  26. RUN pip install --no-cache-dir notebook==5.7.9
  27. RUN pip install --no-cache-dir numpy==1.19.0
  28. ##########
  29. # Copy files for notebooks
  30. ##########
  31. RUN mkdir notebooks
  32. COPY doc/source/*.ipynb notebooks/
  33. COPY doc/source/doc/*.ipynb notebooks/doc/
  34. COPY doc/source/doc/models/*.ipynb notebooks/doc/models/