Skip to content

Commit

Permalink
build(test): install project package with single command
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Oct 8, 2023
1 parent 2fbaca4 commit 9983de6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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 --mount=type=cache,target=$POETRY_CACHE_DIR poetry install

RUN apt-get update \
&& apt-get -y install tesseract-ocr
Expand All @@ -32,7 +32,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 9983de6

Please sign in to comment.