From 987494dd3cc23693f5f88e7afdf43485337924bb Mon Sep 17 00:00:00 2001
From: Alice Grosch <a.grosch@fz-juelich.de>
Date: Fri, 17 Nov 2023 17:06:10 +0100
Subject: [PATCH] Update ENTRYPOINT cmd

---
 lmod/Dockerfile            | 3 ++-
 lmod/files/load_modules.sh | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 lmod/files/load_modules.sh

diff --git a/lmod/Dockerfile b/lmod/Dockerfile
index 41af86a..03330e8 100644
--- a/lmod/Dockerfile
+++ b/lmod/Dockerfile
@@ -46,7 +46,8 @@ RUN /bin/bash /opt/apps/install/lmod/install_lmod_8.7.sh
 WORKDIR /home/$NB_USER
 COPY files/bash.bashrc /etc/bash.bashrc
 COPY files/mnt.sh /tmp/mnt.sh
+COPY files/load_modules.sh /tmp/custom/load_modules.sh
 RUN /bin/bash /tmp/mnt.sh && rm /tmp/mnt.sh
 
 USER jovyan
-ENTRYPOINT ["/bin/bash", "/tmp/custom/load_jupyter_version.sh", "&&", "/bin/bash", "/tmp/custom/load_jupyter_modules.sh"]
\ No newline at end of file
+ENTRYPOINT ["/bin/bash", "-l", "-c", "source /tmp/custom/load_modules.sh"]
\ No newline at end of file
diff --git a/lmod/files/load_modules.sh b/lmod/files/load_modules.sh
new file mode 100644
index 0000000..756daa7
--- /dev/null
+++ b/lmod/files/load_modules.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+source /tmp/custom/load_jupyter_version.sh
+source /tmp/custom/load_jupyter_modules.sh
\ No newline at end of file
-- 
GitLab