# update conda base environment to match specifications in environment.yml
ADD binder/environment.yml /tmp/environment.yml
USER root
RUN sed-i"s|name\: gdet3lab|name\: base|g" /tmp/environment.yml # we need to replace the name of the environment with base such that we can update the base environment here
USER $NB_USER
RUN cat /tmp/environment.yml
RUN conda env update -f /tmp/environment.yml
RUN conda install--quiet--yes\
'scipy==1.4.1'&&\
conda clean --all
# cleanup conda packages
RUN conda clean --all-f-y
# install some extensions defined in binder postBuild