install cached wheels to speed up docker build

This commit is contained in:
Her Email 2023-11-08 23:41:27 -05:00 committed by Henri Dickson
parent 321c5e7094
commit 2db137a3a0
2 changed files with 2 additions and 0 deletions

View file

@ -15,6 +15,8 @@ RUN mv /neodb/neodb-takahe /takahe
WORKDIR /neodb
RUN python -m venv /neodb-venv
RUN find misc/wheels-cache -type f | xargs -n 1 /neodb-venv/bin/python3 -m pip install || echo incompatible wheel ignored
RUN rm -rf misc/wheels-cache
RUN --mount=type=cache,sharing=locked,target=/root/.cache /neodb-venv/bin/python3 -m pip install --upgrade -r requirements.txt
WORKDIR /takahe