警报信息

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

解决方法 添加环境变量

    environment:
        - PIP_ROOT_USER_ACTION=ignore
        - PIP_DISABLE_PIP_VERSION_CHECK=true