jupyter/Math/sagemath/Dockerfile

15 lines
369 B
Docker
Raw Normal View History

2024-12-25 16:31:30 +08:00
FROM eoelab.org:1027/eoeair/jupyter:py-c
2024-03-17 15:40:43 +08:00
ENV BASE_DIR=/opt/base
2024-03-17 15:40:43 +08:00
USER root
# Sage install
2024-03-17 15:40:43 +08:00
RUN apt-get update && \
apt-get install -y --no-install-recommends sagemath && apt-get clean && rm -rf /var/lib/apt/lists/* && \
sage -c 'from sage.repl.ipython_kernel.install import SageKernelSpec; SageKernelSpec.update(prefix=os.environ["BASE_DIR"])'
2024-03-17 15:40:43 +08:00
USER $NB_UID