From 7f78868840bdc54a066cce85ea8625ebea7f6924 Mon Sep 17 00:00:00 2001 From: criamos <981166+Criamos@users.noreply.github.com> Date: Sat, 16 Nov 2024 19:37:50 +0100 Subject: [PATCH] fix: GitHub workflow warning while building docker image with recent Poetry versions - if a "Readme"-File was declared in pyproject.toml, but isn't copied to the root directory of the docker image, the "build-and-publish" GitHub workflow threw a warning ("Warning: The current project could not be installed: [Errno 2] No such file or directory: '/Readme.md'"), which will become an Error in Poetry v2.x - see: https://github.com/python-poetry/poetry/issues/8637 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac701553..ca1f2764 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,14 +6,14 @@ WORKDIR / COPY entrypoint.sh entrypoint.sh COPY edu_sharing_openapi/ edu_sharing_openapi/ -COPY pyproject.toml poetry.lock ./ -RUN pip3 install poetry -RUN poetry install +COPY pyproject.toml poetry.lock Readme.md ./ COPY scrapy.cfg scrapy.cfg COPY setup.cfg setup.cfg COPY converter/ converter/ COPY csv/ csv/ COPY valuespace_converter/ valuespace_converter/ +RUN pip3 install poetry +RUN poetry install ENTRYPOINT ["/entrypoint.sh"]