Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
Merge pull request #12 from uisautomation/pin-pip-version
Browse files Browse the repository at this point in the history
python: pin pip version to <19
  • Loading branch information
abrahammartin authored Jan 24, 2019
2 parents 4e4b459 + c7a0638 commit bf34793
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ FROM python:$PYTHON_VERSION-alpine
# Add our base requirements and install
ADD ./requirements/ /tmp/requirements/

# Update and upgrade system packages and install common Python modules
# Update and upgrade system packages and install common Python modules.
#
# For the moment we pin pip at being less than 19.0 because of
# https://github.com/pypa/pip/issues/6158.
RUN apk --no-cache upgrade && \
apk --no-cache add git vim libffi libxml2 libxslt postgresql-client && \
apk --no-cache add \
postgresql-dev libffi-dev gcc g++ musl-dev libxml2-dev libxslt-dev libstdc++ && \
pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir --upgrade 'pip<19.0' && \
pip install --no-cache-dir --upgrade --no-cache -r /tmp/requirements/$REQUIREMENTS.txt && \
apk del postgresql-dev libffi-dev gcc g++ musl-dev libxml2-dev libxslt-dev libstdc++

0 comments on commit bf34793

Please sign in to comment.