Skip to content
Snippets Groups Projects
Commit a7c1f529 authored by Stephen Melczer's avatar Stephen Melczer
Browse files

Update Dockerfile

parent 292e1564
Branches master
No related tags found
No related merge requests found
# Dockerfile for binder FROM sagemath/sagemath:9.7
# Reference: https://mybinder.readthedocs.io/en/latest/dockerfile.html#preparing-your-dockerfile
FROM sagemath/sagemath:9.1 ARG NB_UID=1000
ARG NB_USER=sage
# Copy the contents of the repo in ${HOME} USER root
COPY --chown=sage:sage . ${HOME} RUN apt update && apt install -y python3 python3-pip
\ No newline at end of file
USER ${NB_UID}
ENV PATH="${PATH}:${HOME}/.local/bin"
RUN pip3 install notebook
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 []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment