Skip to content

Instantly share code, notes, and snippets.

@behackl
Last active July 19, 2023 17:29
Show Gist options
  • Save behackl/08f50c8baaa8e8085547f2c601a2c273 to your computer and use it in GitHub Desktop.
Save behackl/08f50c8baaa8e8085547f2c601a2c273 to your computer and use it in GitHub Desktop.
SD120 - Asymptotic Expansions in SageMath
FROM sagemath/sagemath:9.7
ARG NB_UID=1000
ARG NB_USER=sage
USER root
RUN apt update && apt install -y python3 python3-pip
USER ${NB_UID}
ENV PATH="${PATH}:${HOME}/.local/bin"
RUN pip3 install notebook
RUN sage -pip install RISE sage_acsv
RUN ln -s $(sage -sh -c 'ls -d $SAGE_VENV/share/jupyter/kernels/sagemath') $HOME/.local/share/jupyter/kernels/sagemath-dev
# partially superfluous -- create separate directory to hold notebooks
WORKDIR ${HOME}/notebooks
COPY --chown=${NB_UID}:${NB_UID} . .
USER root
RUN chown -R ${NB_UID}:${NB_UID} .
USER ${NB_UID}
ENTRYPOINT []
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment