mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
improvement: speed up dependency installation in docker image rebuilds by mounting cache layer (#3218)
This commit is contained in:
@ -11,7 +11,8 @@ RUN apt-get update \
|
||||
|
||||
COPY requirements.txt /requirements.txt
|
||||
|
||||
RUN pip install --prefix=/pkg -r requirements.txt
|
||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
pip install --prefix=/pkg -r requirements.txt
|
||||
|
||||
# production stage
|
||||
FROM base AS production
|
||||
|
||||
Reference in New Issue
Block a user