summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-12-20 09:13:23 +0000
committerCan Eldem <celdem@gitlab.com>2019-12-20 09:13:23 +0000
commita374335788042e69c57f8d0b1c798285611ba009 (patch)
tree74ac3b8a62dd6f7c28496e2a770c2f2eb4a8837f /Dockerfile
parent449aa3730bd3df1be035052d081dc5dc3819339d (diff)
Install the latest pip and setuptools
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 2 insertions, 13 deletions
diff --git a/Dockerfile b/Dockerfile
index f313e9d..5eac8c5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,20 +24,9 @@ RUN add-apt-repository ppa:ondrej/php -y && apt-get update -y && \
php7.1-mbstring php7.1-intl php7.1-xml php7.1-soap -y && \
rm -rf /var/lib/apt/lists/*
-# Warning! Environment variable PIP_VERSION causes the upgrade of pip to fail.
-ARG VERSION_OF_PIP=19.1.1
-ENV VERSION_OF_PIP $VERSION_OF_PIP
-
-ARG SETUPTOOLS_VERSION=41.0.1
-ENV SETUPTOOLS_VERSION $SETUPTOOLS_VERSION
-
-ARG LOCAL_PYPI_INDEX=/pypi
-ENV LOCAL_PYPI_INDEX $LOCAL_PYPI_INDEX
-
# Install setuptools, and fetch a recent version pip to be installed later on
-RUN pip3 install --disable-pip-version-check setuptools==$SETUPTOOLS_VERSION && \
- mkdir $LOCAL_PYPI_INDEX && \
- wget -q -O $LOCAL_PYPI_INDEX/pip-$VERSION_OF_PIP.tar.gz https://files.pythonhosted.org/packages/93/ab/f86b61bef7ab14909bd7ec3cd2178feb0a1c86d451bc9bccd5a1aedcde5f/pip-$VERSION_OF_PIP.tar.gz
+RUN pip install --upgrade pip setuptools \
+ && python3 -m pip install --upgrade pip setuptools
# Version of Python, defaults to Python 3.5
ARG LM_PYTHON_VERSION=3.5