Updating pip with default timeout (#8492)

* Updating pip with default timeout

Most of the time, the pip default site is realiable but we do see timeouts pops out when network is busy or temporary unavaliable .

The default value was 15 and that's way too short. So adding --default-time and set it to 1000 should be long enough to mitigate

* Update Dockerfile
This commit is contained in:
liuyanpunk 2019-11-05 15:05:39 +08:00 committed by Maxime Beauchemin
parent 5dba2f4b56
commit 5617f8721d
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ COPY requirements.txt .
COPY requirements-dev.txt .
COPY contrib/docker/requirements-extra.txt .
RUN pip install --upgrade setuptools pip \
&& pip install -r requirements.txt -r requirements-dev.txt -r requirements-extra.txt \
RUN pip --default-timeout=120 install --upgrade setuptools pip \
&& pip --default-timeout=120 install -r requirements.txt -r requirements-dev.txt -r requirements-extra.txt \
&& rm -rf /root/.cache/pip
COPY --chown=superset:superset superset superset