From 166b75b40751ac555269395966a8ce86dc9c0d45 Mon Sep 17 00:00:00 2001 From: Benjamin Dornel Date: Sun, 8 Oct 2023 19:30:05 +0800 Subject: [PATCH] build(test): group poetry project installation together --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2c482c44..cc11b588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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"]