Skip to content

Commit

Permalink
fix: GitHub workflow warning while building docker image with recent …
Browse files Browse the repository at this point in the history
…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: python-poetry/poetry#8637
  • Loading branch information
Criamos committed Nov 16, 2024
1 parent 9bb21f6 commit 7f78868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 7f78868

Please sign in to comment.