Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intro-to-sage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephen Melczer
intro-to-sage
Commits
a7c1f529
Commit
a7c1f529
authored
2 years ago
by
Stephen Melczer
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile
parent
292e1564
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+19
-5
19 additions, 5 deletions
Dockerfile
with
19 additions
and
5 deletions
Dockerfile
+
19
−
5
View file @
a7c1f529
# 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
[]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment