Skip to content

Commit

Permalink
update all python version in the Dockerfile to 3.7 (apache#10841)
Browse files Browse the repository at this point in the history
* update all python version in the Dockerfile to 3.7

* update ubuntu 18.04 to ubuntu 20.04
  • Loading branch information
cyw233 authored Sep 11, 2020
1 parent 136f90f commit 7c11c9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 7c11c9c

Please sign in to comment.