-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (c) Jupyter Development Team. | ||
# Distributed under the terms of the Modified BSD License. | ||
FROM quay.io/cdis/scipy-notebook:2023-03-13 | ||
USER root | ||
|
||
## Configure default locale, see https://github.com/rocker-org/rocker/issues/19 | ||
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \ | ||
&& locale-gen en_US.utf8 \ | ||
&& /usr/sbin/update-locale LANG=en_US.UTF-8 | ||
|
||
ENV LC_ALL en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
|
||
# | ||
# !!!!!NOTE!!!!! | ||
# Do not install conda, python, pip, etc dependencies as root | ||
# It screws up directory permissions | ||
# | ||
USER $NB_UID | ||
WORKDIR /home/$NB_USER | ||
|
||
|
||
RUN pip install --upgrade nbconvert==5.6.1 && \ | ||
pip install --upgrade gen3 | ||
|
||
|
||
COPY --chown=jovyan:users resources/custom.js /home/$NB_USER/.jupyter/custom/ | ||
COPY --chown=jovyan:users resources/jupyter_notebook_config.py /home/$NB_USER/.jupyter/tmp.py | ||
RUN cat /home/$NB_USER/.jupyter/tmp.py >> /home/$NB_USER/.jupyter/jupyter_notebook_config.py && rm /home/$NB_USER/.jupyter/tmp.py | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install jupyter --upgrade | ||
|
||
# step 1 to disable downloads: | ||
RUN jupyter labextension disable @jupyterlab/docmanager-extension:download \ | ||
&& jupyter labextension disable @jupyterlab/filebrowser-extension:download | ||
|
||
# step 2 to disable downloads: | ||
RUN pip uninstall nbconvert --yes | ||
|
||
RUN pip install gen3 | ||
RUN pip install gen3-tracker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Restricted CPU Root | ||
|
||
Dockerfile containing the Jupyter Notebooks for the Bridge2AI project, adapted from the [restricted-gpu-slim/Dockerfile](https://github.com/uc-cdis/containers/blob/master/jupyter-slim/Dockerfile) from Center for Translational Data Science at University of Chicago. No GPU features are enabled in this Dockerfile but root access is provided, making this a suitable image for building off of. |