Skip to content

Commit

Permalink
binder
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 2, 2023
1 parent dcc6ac8 commit ca0fce3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .binder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ RUN adduser --disabled-password \
--uid ${NB_UID} \
${NB_USER}

RUN mamba install -y \
notebook jupyterlab \
&& mamba clean -ya
RUN pip install notebook jupyterlab

COPY ./examples ${HOME}/examples

USER root
RUN chown -R ${NB_UID} ${HOME}

USER ${NB_USER}

RUN /opt/conda/bin/conda init bash \
&& /opt/conda/bin/conda config --set auto_activate_base true

ENTRYPOINT []
3 changes: 2 additions & 1 deletion .binder/postBuild
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

mkdir -p /home/${USER}/examples
echo "cd /home/${USER}/examples" > /home/${USER}/.bashrc

python -c "import geant4_python_application; geant4_python_application.install_datasets()"
# python -c "import geant4_python_application; geant4_python_application.install_datasets()"

0 comments on commit ca0fce3

Please sign in to comment.