From ce81b239881f0ed2901496c25325e7fb9aec52b6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 19 Sep 2022 21:34:27 +0100 Subject: [PATCH] Manually remove poetry's cache `--no-cache` apparently doesn't actually stop using a cache... --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0b5a33c..16f529f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,9 @@ USER website RUN python -m venv $VIRTUAL_ENV COPY --chown=website pyproject.toml poetry.lock ./ -RUN poetry install --without=dev --no-cache + +# Clear the poetry and pip caches, as `--no-cache` doesn't do anything +RUN poetry install --without=dev && rm -rf $HOME/.cache COPY --chown=website --from=frontend ./static/build ./static/build