描述bug
在运行安装unstructered:0.14.8的docker文件时,Poetry没有被安装。之前的版本没有错误。
重现方法
FROM downloads.unstructured.io/unstructured-io/unstructured:0.14.8
WORKDIR /home/root/
USER root
ENV POETRY_HOME /opt/poetry
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH /opt/poetry/bin:$PATH
RUN ls /opt/poetry
产生错误:
0.140 ls: /opt/poetry: No such file or directory
------
Dockerfile:11
--------------------
9 |
10 | ENV PATH /opt/poetry/bin:$PATH
11 | >>> RUN ls /opt/poetry
12 |
--------------------
ERROR: failed to solve: process "/bin/sh -c ls /opt/poetry" did not complete successfully: exit code: 1
1条答案
按热度按时间6ojccjat1#
你好@MattiaCinelli - 这个错误是否仅与
poetry
有关?我们在unstructured
镜像中没有安装poetry
。在镜像中的Python依赖项是通过pip
安装的。