Ignore pip-root-warning

This commit is contained in:
Frank Agerholm 2023-07-11 15:36:53 +00:00
commit 561e9344e3
2 changed files with 15 additions and 2 deletions

View file

@ -2,4 +2,8 @@ FROM docker.io/library/python:3.11-alpine
RUN apk --no-cache add sshpass openssh-client lftp; mkdir -p /opt/app
ADD requirements.txt /opt/app/
# ignore "Running pip as root" warning
ENV PIP_ROOT_USER_ACTION=ignore
RUN pip install -r /opt/app/requirements.txt && pip freeze