Manually remove poetry's cache

`--no-cache` apparently doesn't actually stop using a cache...
This commit is contained in:
Jake Howard 2022-09-19 21:34:27 +01:00
parent b4f166f4be
commit ce81b23988
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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