[PATCH 2/3] silence warning about running pip as root in docker build
daniel watson <[email protected]> Tue, 16 Jun 2026 18:28:33 -0700
| Newsgroups | gmane.mail.imap.offlineimap.general |
|---|---|
| Message-ID | <[email protected]> |
silence the warning about running pip as root when building docker image. use environment variable instead of command line flag because the version of pip running initially is older than the flag, so including the flag causes it to fail. the environment variable just gets ignored by the older version of pip. Signed-off-by: daniel watson <[email protected]> --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 5b4ee1f..91a3be5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ WORKDIR /app-src #RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y krb5-user -y && rm -rf /var/lib/apt/lists/* # Get latest pip and dependencies +ENV PIP_ROOT_USER_ACTION=ignore RUN /usr/local/bin/python3 -m pip install --upgrade pip && pip install -r requirements.txt # Copy in rest of the code after deps are in place -- 2.54.0 _______________________________________________ OfflineIMAP-project mailing list: [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/offlineimap-project OfflineIMAP homepages: - https://github.com/OfflineIMAP - http://offlineimap.org