Manually remove poetry's cache
`--no-cache` apparently doesn't actually stop using a cache...
This commit is contained in:
parent
b4f166f4be
commit
ce81b23988
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,9 @@ USER website
|
||||||
|
|
||||||
RUN python -m venv $VIRTUAL_ENV
|
RUN python -m venv $VIRTUAL_ENV
|
||||||
COPY --chown=website pyproject.toml poetry.lock ./
|
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
|
COPY --chown=website --from=frontend ./static/build ./static/build
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue