]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Add timeout to `pip install` 118/head
authorQuinn Casey <quinn@quinncasey.com>
Mon, 21 Feb 2022 18:27:03 +0000 (10:27 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Feb 2022 18:27:03 +0000 (10:27 -0800)
Attempt to fix `ConnectionResetError` seen [here](https://github.com/paperless-ngx/paperless-ngx/runs/5275984654?check_suite_focus=true) and [here](https://github.com/paperless-ngx/paperless-ngx/runs/5259904053?check_suite_focus=true)

Dockerfile

index 8ddb5647921197ab50b5254ce2547d139ce69c74..63cfee19c0fc03b5f3ad3fbf43cc6796a788cfed 100644 (file)
@@ -63,8 +63,8 @@ RUN apt-get update \
                build-essential \
                libpq-dev \
                libqpdf-dev \
-       && python3 -m pip install --upgrade --no-cache-dir supervisor \
-  && python3 -m pip install --no-cache-dir -r ../requirements.txt \
+       && python3 -m pip install --default-timeout=1000 --upgrade --no-cache-dir supervisor \
+  && python3 -m pip install --default-timeout=1000 --no-cache-dir -r ../requirements.txt \
        && apt-get -y purge build-essential libqpdf-dev \
        && apt-get -y autoremove --purge \
        && rm -rf /var/lib/apt/lists/*