mirror of https://github.com/apache/superset.git
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
This commit is contained in:
parent
136f90f87c
commit
7c11c9ce16
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue