Initialize PIP_CACHE_DIR after setting the env

This commit is contained in:
mauwii 2023-02-08 23:17:15 +01:00
parent bc82fc0cdd
commit a338af17c8
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -54,6 +54,7 @@ RUN \
# prepare pip for buildkit cache
ARG PIP_CACHE_DIR=/var/cache/buildkit/pip
ENV PIP_CACHE_DIR ${PIP_CACHE_DIR}
RUN mkdir -p ${PIP_CACHE_DIR}
# create virtual environment
RUN --mount=type=cache,target=${PIP_CACHE_DIR} \