Use pipstrap to install a good version of pip

This commit is contained in:
Brad Warren 2017-11-28 15:25:01 -08:00
parent f5ed771d4f
commit b020f94a01
4 changed files with 12 additions and 3 deletions

View file

@ -7,6 +7,9 @@ RUN yum install -y epel-release
# Install pip, sudo and nose:
RUN yum install -y python-pip sudo
# Use pipstrap to install a stable and tested version of pip
COPY ./pieces/pipstrap.py /opt
RUN /opt/pipstrap.py
RUN pip install nose
# Add an unprivileged user:

View file

@ -11,7 +11,9 @@ RUN apt-get update && \
apt-get -q -y install python-pip sudo openssl && \
apt-get clean
ENV PIP_INDEX_URL https://pypi.python.org/simple
# Use pipstrap to install a stable and tested version of pip
COPY ./pieces/pipstrap.py /opt
RUN /opt/pipstrap.py
RUN pip install nose
# Let that user sudo:

View file

@ -15,6 +15,9 @@ RUN sed -i.bkp -e \
RUN apt-get update && \
apt-get -q -y install python-pip && \
apt-get clean
# Use pipstrap to install a stable and tested version of pip
COPY ./pieces/pipstrap.py /opt
RUN /opt/pipstrap.py
RUN pip install nose
RUN mkdir -p /home/lea/certbot

View file

@ -10,8 +10,9 @@ RUN useradd --create-home --home-dir /home/lea --shell /bin/bash --groups sudo -
RUN apt-get update && \
apt-get -q -y install python-pip sudo openssl && \
apt-get clean
ENV PIP_INDEX_URL https://pypi.python.org/simple
# Use pipstrap to install a stable and tested version of pip
COPY ./pieces/pipstrap.py /opt
RUN /opt/pipstrap.py
RUN pip install nose
# Let that user sudo: