diff --git a/jupyterhub/base/Dockerfile b/jupyterhub/base/Dockerfile index 95da6abfc890e4258e1caa9f13e1f3b291f2fcc3..c474724b5fb7aaa95be9d9fd96a9bf198b849f8d 100755 --- a/jupyterhub/base/Dockerfile +++ b/jupyterhub/base/Dockerfile @@ -44,9 +44,10 @@ RUN python${JUPYTERHUB_PYTHON_VERSION} -m pip --no-cache-dir install \ RUN mkdir -p /usr/local/venv && \ python${JUPYTERHUB_PYTHON_VERSION} -m venv /usr/local/venv/default && \ . /usr/local/venv/default/bin/activate && \ - python${JUPYTERHUB_PYTHON_VERSION} -m pip --no-cache-dir install --upgrade pip==20.2.3 && \ - pip --no-cache-dir install --upgrade setuptools==49.1.0 && \ - pip install tensorflow==1.15.3 && \ + python${JUPYTERHUB_PYTHON_VERSION} -m pip --no-cache-dir install --upgrade \ + pip==${PYTHON_PIP_VERSION} \ + setuptools==${PYTHON_SETUPTOOLS_VERSION} && \ + pip --no-cache-dir install tensorflow==1.15.3 && \ pip --no-cache-dir install \ wheel \ black \ diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index 6633b9e0c9c3a7053bcfd0d4b185db8bc67c18c9..4d041f8f81e4678495c316feb326cb3a5879c1ee 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -105,4 +105,9 @@ RUN apt-get install -y \ ADD agki-nas01.imp.fu-berlin.de-ca-cert.crt /usr/local/share/ca-certificates/agki-nas01.imp.fu-berlin.de-ca-cert.crt RUN update-ca-certificates COPY pip.conf /etc/ -RUN python3 -m pip install --upgrade pip==20.2.3 + +ENV PYTHON_PIP_VERSION=20.2.3 +ENV PYTHON_SETUPTOOLS_VERSION=50.3.0 +RUN python3 -m pip install --upgrade \ + pip==${PYTHON_PIP_VERSION} \ + setuptools==${PYTHON_SETUPTOOLS_VERSION}