unstructured bug/poetry-in-dockerfile

wsewodh2  于 2个月前  发布在  Docker
关注(0)|答案(1)|浏览(45)

描述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
6ojccjat

6ojccjat1#

你好@MattiaCinelli - 这个错误是否仅与poetry有关?我们在unstructured镜像中没有安装poetry。在镜像中的Python依赖项是通过pip安装的。

相关问题