From eb0c1aa80bb9727b14e5607b34e77eb4fb713db2 Mon Sep 17 00:00:00 2001
From: Marcus Meyer <m.meyer@itc.rwth-aachen.de>
Date: Fri, 24 Jan 2025 15:51:13 +0100
Subject: [PATCH] Added new Dockerfiles

---
 Dockerfile.python-3.10 | 18 ++++++++++++++++++
 Dockerfile.python-3.11 | 18 ++++++++++++++++++
 Dockerfile.python-3.12 | 17 +++++++++++++++++
 Dockerfile.python-3.13 | 18 ++++++++++++++++++
 4 files changed, 71 insertions(+)
 create mode 100644 Dockerfile.python-3.10
 create mode 100644 Dockerfile.python-3.11
 create mode 100644 Dockerfile.python-3.12
 create mode 100644 Dockerfile.python-3.13

diff --git a/Dockerfile.python-3.10 b/Dockerfile.python-3.10
new file mode 100644
index 0000000..8a18861
--- /dev/null
+++ b/Dockerfile.python-3.10
@@ -0,0 +1,18 @@
+ARG BASE_IMAGE=registry.git.rwth-aachen.de/jupyter/profiles/rwth-courses-python-3.10:latest
+FROM ${BASE_IMAGE}
+
+ARG conda_env=python310
+ARG py_ver=3.10
+ARG disp_name="Python 3.10 (ipykernel)"
+
+# Install packages via requirements.txt
+ADD requirements.txt .
+RUN "${CONDA_DIR}/envs/${conda_env}/bin/pip" install --no-cache-dir -r requirements.txt
+
+# .. Or update conda base environment to match specifications in environment.yml
+ADD environment.yml /tmp/environment.yml
+
+# All packages specified in environment.yml are installed in the base environment
+RUN mamba env update -n "${conda_env}" -f /tmp/environment.yml && \
+    mamba clean -a -f -y
+
diff --git a/Dockerfile.python-3.11 b/Dockerfile.python-3.11
new file mode 100644
index 0000000..2ba3395
--- /dev/null
+++ b/Dockerfile.python-3.11
@@ -0,0 +1,18 @@
+ARG BASE_IMAGE=registry.git.rwth-aachen.de/jupyter/profiles/rwth-courses-python-3.11:latest
+FROM ${BASE_IMAGE}
+
+ARG conda_env=python311
+ARG py_ver=3.11
+ARG disp_name="Python 3.11 (ipykernel)"
+
+# Install packages via requirements.txt
+ADD requirements.txt .
+RUN "${CONDA_DIR}/envs/${conda_env}/bin/pip" install --no-cache-dir -r requirements.txt
+
+# .. Or update conda base environment to match specifications in environment.yml
+ADD environment.yml /tmp/environment.yml
+
+# All packages specified in environment.yml are installed in the base environment
+RUN mamba env update -n "${conda_env}" -f /tmp/environment.yml && \
+    mamba clean -a -f -y
+
diff --git a/Dockerfile.python-3.12 b/Dockerfile.python-3.12
new file mode 100644
index 0000000..cc62e54
--- /dev/null
+++ b/Dockerfile.python-3.12
@@ -0,0 +1,17 @@
+ARG BASE_IMAGE=registry.git.rwth-aachen.de/jupyter/profiles/rwth-courses-python-3.12:latest
+FROM ${BASE_IMAGE}
+
+ARG conda_env=python312
+ARG py_ver=3.12
+ARG disp_name="Python 3.12 (ipykernel)"
+
+# Install packages via requirements.txt
+ADD requirements.txt .
+RUN "${CONDA_DIR}/envs/${conda_env}/bin/pip" install --no-cache-dir -r requirements.txt
+
+# .. Or update conda base environment to match specifications in environment.yml
+ADD environment.yml /tmp/environment.yml
+
+# All packages specified in environment.yml are installed in the base environment
+RUN mamba env update -n "${conda_env}" -f /tmp/environment.yml && \
+    mamba clean -a -f -y
diff --git a/Dockerfile.python-3.13 b/Dockerfile.python-3.13
new file mode 100644
index 0000000..88b2b5a
--- /dev/null
+++ b/Dockerfile.python-3.13
@@ -0,0 +1,18 @@
+ARG BASE_IMAGE=registry.git.rwth-aachen.de/jupyter/profiles/rwth-courses-python-3.13:latest
+FROM ${BASE_IMAGE}
+
+ARG conda_env=python313
+ARG py_ver=3.13
+ARG disp_name="Python 3.13 (ipykernel)"
+
+# Install packages via requirements.txt
+ADD requirements.txt .
+RUN "${CONDA_DIR}/envs/${conda_env}/bin/pip" install --no-cache-dir -r requirements.txt
+
+# .. Or update conda base environment to match specifications in environment.yml
+ADD environment.yml /tmp/environment.yml
+
+# All packages specified in environment.yml are installed in the base environment
+RUN mamba env update -n "${conda_env}" -f /tmp/environment.yml && \
+    mamba clean -a -f -y
+
-- 
GitLab