Upgrade pip after building Python
This commit is contained in:
@@ -34,6 +34,9 @@ make -j8 install
|
|||||||
# Make sure we can run Python
|
# Make sure we can run Python
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
|
# Upgrade pip
|
||||||
|
/opt/python/bin/python3 -m pip install -U pip
|
||||||
|
|
||||||
# Build mod-wsgi-py3 for Python 3.6
|
# Build mod-wsgi-py3 for Python 3.6
|
||||||
cd /dpkg/mod-wsgi-*
|
cd /dpkg/mod-wsgi-*
|
||||||
./configure --with-python=/opt/python/bin/python3
|
./configure --with-python=/opt/python/bin/python3
|
||||||
|
@@ -10,5 +10,4 @@ RUN echo Python is installed in /opt/python/ > README.python
|
|||||||
ENV PATH=/opt/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
ENV PATH=/opt/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
RUN cd /opt/python/bin && \
|
RUN cd /opt/python/bin && \
|
||||||
ln -s python3 python && \
|
ln -s python3 python
|
||||||
ln -s pip3 pip
|
|
||||||
|
Reference in New Issue
Block a user