[PATCH 2/3] silence warning about running pip as root in docker build
daniel watson
ozzloy at each.do
Wed Jun 17 02:28:33 BST 2026
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 <ozzloy at each.do>
---
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
More information about the OfflineIMAP-project
mailing list