add pip retries. should help with github's occasional flaky network during build/test (#2506)

This commit is contained in:
rkuo-danswer
2024-09-18 17:46:41 -07:00
committed by GitHub
parent a9403016c9
commit bb279a8580
3 changed files with 8 additions and 1 deletions

View File

@@ -15,7 +15,10 @@ ENV DANSWER_VERSION=${DANSWER_VERSION} \
RUN echo "DANSWER_VERSION: ${DANSWER_VERSION}"
COPY ./requirements/model_server.txt /tmp/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
RUN pip install --no-cache-dir --upgrade \
--retries 5 \
--timeout 30 \
-r /tmp/requirements.txt
RUN apt-get remove -y --allow-remove-essential perl-base && \
apt-get autoremove -y