Pin pip version

Pin the version of pip since pip dropped python2 support
This commit is contained in:
Brett 2021-01-25 15:54:12 +01:00
parent 3a143f8f31
commit 8d8f2c247b
3 changed files with 6 additions and 6 deletions

View File

@ -50,8 +50,8 @@ RUN apk add --no-cache tzdata \
# Create SRC_DIR
mkdir -p ${SRC_DIR} && \
# Install pip, supervisord and uwsgi
curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
python ${SRC_DIR}/get-pip.py && \
curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py 'pip==20.3.3' && \
pip install supervisor && \
mkdir /etc/supervisord.d && \
#pip wheel --wheel-dir=/wheels uwsgi gevent && \

View File

@ -50,8 +50,8 @@ RUN apk add --no-cache tzdata \
# Create SRC_DIR
mkdir -p ${SRC_DIR} && \
# Install pip, supervisord and uwsgi
curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
python ${SRC_DIR}/get-pip.py && \
curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py 'pip==20.3.3' && \
pip install supervisor && \
mkdir /etc/supervisord.d && \
#pip wheel --wheel-dir=/wheels uwsgi gevent && \

View File

@ -50,8 +50,8 @@ RUN apk add --no-cache tzdata \
# Create SRC_DIR
mkdir -p ${SRC_DIR} && \
# Install pip
curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
python3 ${SRC_DIR}/get-pip.py && \
curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py && \
python3 ${SRC_DIR}/get-pip.py 'pip==20.3.3' && \
rm -rf ${SRC_DIR}/get-pip.py
# Set up Python3 virtual environment