Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] can not build docker image #3234

Open
thomaspeng90s opened this issue May 13, 2024 · 0 comments
Open

[BUG] can not build docker image #3234

thomaspeng90s opened this issue May 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@thomaspeng90s
Copy link

Describe the bug
I tried to build the flow as a docker image, but always get error when execute
docker build

86.01 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
86.01
86.01 Collecting keyrings.alt
86.01   Downloading keyrings.alt-5.0.1-py3-none-any.whl (17 kB)
86.01 Requirement already satisfied: jaraco.classes in /opt/conda/envs/promptflow-serve/lib/python3.9/site-packages (from keyrings.alt) (3.4.0)
86.01 Collecting jaraco.context
86.01   Downloading jaraco.context-5.3.0-py3-none-any.whl (6.5 kB)
86.01 Requirement already satisfied: more-itertools in /opt/conda/envs/promptflow-serve/lib/python3.9/site-packages (from jaraco.classes->keyrings.alt) (10.2.0)
86.01 Collecting backports.tarfile
86.01   Downloading backports.tarfile-1.1.1-py3-none-any.whl (29 kB)
86.01 Installing collected packages: backports.tarfile, jaraco.context, keyrings.alt
86.01 Successfully installed backports.tarfile-1.1.1 jaraco.context-5.3.0 keyrings.alt-5.0.1
86.01
88.39 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
88.39
88.39 Collecting gunicorn==20.1.0
88.39   Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
88.39      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.5/79.5 kB 337.9 kB/s eta 0:00:00
88.39 Requirement already satisfied: setuptools>=3.0 in /opt/conda/envs/promptflow-serve/lib/python3.9/site-packages (from gunicorn==20.1.0) (69.5.1)
88.39 Installing collected packages: gunicorn
88.39 Successfully installed gunicorn-20.1.0
88.39
88.64 ERROR conda.cli.main_run:execute(33): Subprocess for 'conda run ['pip', 'install', 'uvicorn>=0.27.0,<1.0.0']' command failed.  (See above for error)
88.64 /opt/conda/envs/promptflow-serve/.tmpe7zfu2_f: line 3: 1.0.0: No such file or directory
88.64
------
Dockerfile:12
--------------------
  11 |     # create conda environment
  12 | >>> RUN conda create -n promptflow-serve python=3.9.16 pip=23.0.1 -q -y && \
  13 | >>>     conda run -n promptflow-serve \
  14 | >>>     pip install -r /flow/requirements.txt && \
  15 | >>>     conda run -n promptflow-serve pip install keyrings.alt && \
  16 | >>>     conda run -n promptflow-serve pip install gunicorn==20.1.0 && \
  17 | >>>     conda run -n promptflow-serve pip install 'uvicorn>=0.27.0,<1.0.0' && \
  18 | >>>     conda run -n promptflow-serve pip cache purge && \
  19 | >>>     conda clean -a -y
  20 |
--------------------
ERROR: failed to solve: process "/bin/sh -c conda create -n promptflow-serve python=3.9.16 pip=23.0.1 -q -y &&     conda run -n promptflow-serve     pip install -r /flow/requirements.txt &&     conda run -n promptflow-serve pip install keyrings.alt &&     conda run -n promptflow-serve pip install gunicorn==20.1.0 &&     conda run -n promptflow-serve pip install 'uvicorn>=0.27.0,<1.0.0' &&     conda run -n promptflow-serve pip cache purge &&     conda clean -a -y" did not complete successfully: exit code: 1

How To Reproduce the bug
Steps to reproduce the behavior, how frequent can you experience the bug:

  1. docker build -t xxx .

Running Information(please complete the following information):

  • Promptflow Package Version 1.10.1
  • Operating System: Windows 11]
  • Python Version using 3.10.12
@thomaspeng90s thomaspeng90s added the bug Something isn't working label May 13, 2024
@thomaspeng90s thomaspeng90s changed the title [BUG] [BUG] can not build docker image May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants