-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM jupyter/minimal-notebook
USER jovyan
RUN conda update conda
RUN conda config --remove channels conda-forge
RUN conda config --add channels conda-forge
RUN conda config --set channel_priority strict
COPY environment.yml /home/jovyan/
RUN mamba env update -n base -f /home/jovyan/environment.yml
# using ~/.bash_profile instead of ~/.bashrc for non-interactive tty (-it) containers
RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> /home/jovyan/.bash_profile && \
echo "conda deactivate" >> /home/jovyan/.bash_profile && \
echo "conda activate base" >> /home/jovyan/.bash_profile
RUN . /opt/conda/etc/profile.d/conda.sh && conda activate base && python -m ipykernel install --user --name base
RUN source /home/jovyan/.bash_profile
COPY example-project.ipynb /home/jovyan/
# # Install JupyterLab widget extensions
# RUN jupyter labextension install \
# ipyvolume \
# itkwidgets \
# jupyterlab_iframe \
# jupyter-leaflet \
# jupyter-threejs \
# && npm cache clean --force
RUN jupyter lab build