@@ -32,30 +32,27 @@ RUN apt-get update && \
3232 rm -rf /var/lib/apt/lists/*
3333
3434# Copy the script to setup the environment
35- RUN cp -a docker/setup_custom_env.py /opt/setup-scripts/ && \
36- chmod +x /opt/setup-scripts/setup_custom_env.py
35+ # RUN cp -a docker/setup_custom_env.py /opt/setup-scripts/ && \
36+ # chmod +x /opt/setup-scripts/setup_custom_env.py
3737
3838# Copy the script to activate the Conda environment
39- RUN cp -a docker/activate-custom-env.sh /usr/local/bin/before-notebook.d/
39+ # RUN cp -a docker/activate-custom-env.sh /usr/local/bin/before-notebook.d/
4040
4141# Switch back to the default notebook user
4242USER ${NB_UID}
4343
44- # Set the working directory to the repository directory
45- # WORKDIR ${HOME}/${BASENAME}
46-
4744# Create the Conda environment defined in environment.yml
48- RUN mamba env create -f binder /environment.yml && \
45+ RUN mamba env update -f docker /environment.yml && \
4946 mamba clean --all -f -y && \
5047 fix-permissions "${CONDA_DIR}" && \
5148 fix-permissions "/home/${NB_USER}"
5249
5350# Register the Jupyter kernel from the custom environment
54- RUN /opt/setup-scripts/setup_custom_env.py ${BASENAME}
51+ # RUN /opt/setup-scripts/setup_custom_env.py ${BASENAME}
5552
5653# Copy the IPython configuration file (binder/postBuild script)
57- RUN mkdir -p ${HOME}/.ipython/profile_default
58- COPY binder/ipython_config.py ${HOME}/.ipython/profile_default/
54+ RUN mkdir -p ${HOME}/.ipython/profile_default && \
55+ cp -a binder/ipython_config.py ${HOME}/.ipython/profile_default/
5956
6057# Set the environment variable IPYTHONDIR
6158ENV IPYTHONDIR="${HOME}/.ipython"
0 commit comments