forked from nsidc/NSIDC-Data-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
20 lines (16 loc) · 784 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM jupyter/base-notebook:latest
USER root
# Install all OS dependencies for notebook server that starts but lacks all
# features (e.g., download as all possible file formats)
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -yq --no-install-recommends git \
&& apt-get clean && apt autoremove && rm -rf /var/lib/apt
USER $NB_UID
ADD binder/environment.yml $HOME
RUN conda env update -f environment.yml -n base && conda clean --force --yes --all && rm $HOME/environment.yml && \
npm cache clean --force && \
rm -rf /opt/conda/lib/python3.7/site-packages/awscli/examples \
&& find /opt/conda/ -follow -type f -name '*.a' -delete \
&& find /opt/conda/ -follow -type f -name '*.pyc' -delete \
&& fix-permissions /home/$NB_USER && fix-permissions $HOME