mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
improvement: speed up dependency installation in docker image rebuilds by mounting cache layer (#3218)
This commit is contained in:
@ -13,7 +13,8 @@ WORKDIR /app/web
|
||||
COPY package.json .
|
||||
COPY yarn.lock .
|
||||
|
||||
RUN yarn install --frozen-lockfile
|
||||
RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn \
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
|
||||
# build resources
|
||||
|
||||
Reference in New Issue
Block a user