From 7c11c9ce1615e3e0eac3eabd662ddee388eb2ad8 Mon Sep 17 00:00:00 2001 From: cyw233 <49756587+cyw233@users.noreply.github.com> Date: Fri, 11 Sep 2020 21:33:15 +1000 Subject: [PATCH] update all python version in the Dockerfile to 3.7 (#10841) * update all python version in the Dockerfile to 3.7 * update ubuntu 18.04 to ubuntu 20.04 --- Dockerfile | 4 ++-- docs/installation.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9617a1ba3..b36744e89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,7 +69,7 @@ RUN cd /app/superset-frontend \ ###################################################################### # Final lean image... ###################################################################### -ARG PY_VER=3.6.9 +ARG PY_VER=3.7.9 FROM python:${PY_VER} AS lean ENV LANG=C.UTF-8 \ @@ -89,7 +89,7 @@ RUN useradd --user-group --no-create-home --no-log-init --shell /bin/bash supers libpq-dev \ && rm -rf /var/lib/apt/lists/* -COPY --from=superset-py /usr/local/lib/python3.6/site-packages/ /usr/local/lib/python3.6/site-packages/ +COPY --from=superset-py /usr/local/lib/python3.7/site-packages/ /usr/local/lib/python3.7/site-packages/ # Copying site-packages doesn't move the CLIs, so let's copy them one by one COPY --from=superset-py /usr/local/bin/gunicorn /usr/local/bin/celery /usr/local/bin/flask /usr/bin/ COPY --from=superset-node /app/superset/static/assets /app/superset/static/assets diff --git a/docs/installation.rst b/docs/installation.rst index 15ae94c61..86ff546be 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -155,9 +155,9 @@ the required dependencies are installed: :: sudo apt-get install build-essential libssl-dev libffi-dev python-dev python-pip libsasl2-dev libldap2-dev -**Ubuntu 18.04** If you have python3.6 installed alongside with python2.7, as is default on **Ubuntu 18.04 LTS**, run this command also: :: +**Ubuntu 20.04** the following command will ensure that the required dependencies are installed: :: - sudo apt-get install build-essential libssl-dev libffi-dev python3.6-dev python-pip libsasl2-dev libldap2-dev + sudo apt-get install build-essential libssl-dev libffi-dev python3-dev python-pip libsasl2-dev libldap2-dev otherwise build for ``cryptography`` fails.