diff --git a/tensorflow_runtime_dockerfiles/bashrc b/tensorflow_runtime_dockerfiles/bashrc
index a92ad0878b2ff68a9c9762663609052f8521e392..e7d1e9bb70a80a4740053e651114b3c5f32609e8 100644
--- a/tensorflow_runtime_dockerfiles/bashrc
+++ b/tensorflow_runtime_dockerfiles/bashrc
@@ -35,6 +35,9 @@ TF
 echo -e "\e[0;33m"
 
 if [[ $EUID -eq 0 ]]; then
+  # Fix CUDA loading for running nvidia-smi
+  ldconfig
+
   cat <<WARN
 WARNING: You are running this container as root, which can cause new files in
 mounted volumes to be created as the root user on your host machine.
@@ -53,5 +56,3 @@ fi
 # Turn off colors
 echo -e "\e[m"
 
-# Fix CUDA loading for running nvidia-smi
-ldconfig
diff --git a/tensorflow_runtime_dockerfiles/mathreader.Dockerfile b/tensorflow_runtime_dockerfiles/mathreader.Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..09dd706ee576692f5759ed347decff6a0f8b9794
--- /dev/null
+++ b/tensorflow_runtime_dockerfiles/mathreader.Dockerfile
@@ -0,0 +1,56 @@
+# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============================================================================
+
+FROM ubuntu:22.04 as base
+ENV DEBIAN_FRONTEND=noninteractive
+ENV LANG C.UTF-8
+
+COPY setup.sources.sh /setup.sources.sh
+COPY setup.packages.sh /setup.packages.sh
+COPY cpu.packages.txt /cpu.packages.txt
+RUN /setup.sources.sh
+RUN /setup.packages.sh /cpu.packages.txt
+
+
+ARG PYTHON_VERSION=python3.11
+#ARG TENSORFLOW_PACKAGE=tf-2.2.0
+COPY setup.python.sh /setup.python.sh
+COPY mathreader.requirements.txt /mathreader.requirements.txt
+RUN /setup.python.sh $PYTHON_VERSION /mathreader.requirements.txt
+#RUN pip install --no-cache-dir ${TENSORFLOW_PACKAGE} 
+
+COPY setup.mathreader.sh /setup.mathreader.sh
+RUN /setup.mathreader.sh
+
+COPY bashrc /etc/bash.bashrc
+RUN chmod a+rwx /etc/bash.bashrc
+
+FROM base as jupyter
+
+#COPY jupyter.requirements.txt /jupyter.requirements.txt
+#COPY setup.jupyter.sh /setup.jupyter.sh
+#RUN python3 -m pip install --no-cache-dir -r /jupyter.requirements.txt -U
+#RUN /setup.jupyter.sh
+#COPY jupyter.readme.md /tf/tensorflow-tutorials/README.md
+
+WORKDIR /tf
+EXPOSE 8877
+
+CMD ["bash"]
+
+FROM base as test
+
+COPY test.import_cpu.sh /test.import_cpu.sh
+RUN /test.import_cpu.sh
diff --git a/tensorflow_runtime_dockerfiles/mathreader.requirements.txt b/tensorflow_runtime_dockerfiles/mathreader.requirements.txt
new file mode 100644
index 0000000000000000000000000000000000000000..4a76e950f7d4065711be56773858ccd487f708b6
--- /dev/null
+++ b/tensorflow_runtime_dockerfiles/mathreader.requirements.txt
@@ -0,0 +1,18 @@
+idx2numpy
+imageio
+imutils
+matplotlib
+numpy
+#tensorflow
+bison
+ply
+opencv-python
+h5py
+Markdown
+Pillow
+ply
+#tensorflow==2.2.0
+tensorflow==2.12.0 # no older version available
+#tensorflow-estimator==2.2.0
+tensorflow-estimator==2.12.0
+twine
diff --git a/tensorflow_runtime_dockerfiles/setup.mathreader.sh b/tensorflow_runtime_dockerfiles/setup.mathreader.sh
new file mode 100755
index 0000000000000000000000000000000000000000..70c0e8a2b7244c0abb09c0463730a2f3b0b404ff
--- /dev/null
+++ b/tensorflow_runtime_dockerfiles/setup.mathreader.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+export DEBIAN_FRONTEND=noninteractive
+apt update
+apt-get install -y git libgl1
+
+git clone https://github.com/carolreis/mathreader.git
+cd mathreader
+if git show-ref refs/heads/master |grep ^8eec123f6332e5d505526d6b320d8802b247cd3c; then
+	echo integrity of repository is okay
+else
+	echo repository has been unexpected changed
+	exit 1
+fi
+sed -i 's/==2\.2\.0//' requirements.txt
+python setup.py sdist bdist_wheel
+pip install ./dist/mathreader-0.161-py3-none-any.whl