Unstructured-IO / unstructured

Open source libraries and APIs to build custom preprocessing pipelines for labeling, training, or production machine learning pipelines.
https://www.unstructured.io/
Apache License 2.0
8.61k stars 704 forks source link

bug/poetry-in-dockerfile #3289

Closed MattiaCinelli closed 1 month ago

MattiaCinelli commented 3 months ago

Describe the bug While running the docker file to install unstructered:0.14.8

Poetry is not installed. Previous release had no errors.

To Reproduce

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

Produces error:

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
MthwRobinson commented 2 months ago

Hi @MattiaCinelli - is this error just related to poetry? We don't install poetry in the unstructured image. Python dependencies in the image are installed with pip.