Skip to content

Commit

Permalink
no poerty lock flie
Browse files Browse the repository at this point in the history
  • Loading branch information
LaraFuhrmann committed Nov 27, 2024
1 parent 1b9bff6 commit c1915c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 745 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ RUN apt-get update -y && \

RUN pip install "poetry==$POETRY_VERSION"

COPY pyproject.toml poetry.lock /usr/app/
COPY pyproject.toml /usr/app/

# https://stackoverflow.com/questions/53835198/integrating-python-poetry-with-docker
RUN cd /usr/app && poetry install --no-interaction --no-ansi --no-root

# GitHub Actions chimes in here and sets docker's WORKDIR=${GITHUB_WORKSPACE}
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#workdir
# poetry install --only-root would be more elegant but does not work in Github Actions
CMD poetry install --no-interaction --no-ansi && cd ./tests && poetry run pytest
CMD poetry install --no-interaction --no-ansi && cd ./tests && poetry run pytest
Loading

0 comments on commit c1915c8

Please sign in to comment.