Skip to content

Commit

Permalink
build(test): group poetry project installation together
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Oct 8, 2023
1 parent 2fbaca4 commit 166b75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --without dev --n
FROM base AS test

RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --no-root
RUN poetry install

RUN apt-get update \
&& apt-get -y install tesseract-ocr
Expand All @@ -32,7 +33,6 @@ ENV PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH

COPY monopoly ./monopoly
COPY tests ./tests
RUN poetry install

CMD ["python", "-m", "poetry", "run", "task", "test"]

Expand Down

0 comments on commit 166b75b

Please sign in to comment.