mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 05:06:13 +08:00
Added a note on the front-end docker build: use taobao source to accelerate the installation of front-end dependency packages to achieve the purpose of quickly building containers (#3358)
Co-authored-by: lbm21 <313338264@qq.com> Co-authored-by: akou <beiming1201@gmail.com>
This commit is contained in:
parent
d87d4b9b56
commit
617e7cee81
@ -16,6 +16,11 @@ COPY yarn.lock .
|
||||
RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn \
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
# if you located in China, you can use taobao registry to speed up
|
||||
# RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn \
|
||||
# yarn install --frozen-lockfile --registry https://registry.npm.taobao.org/
|
||||
|
||||
|
||||
|
||||
# build resources
|
||||
FROM base as builder
|
||||
|
Loading…
x
Reference in New Issue
Block a user