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:
Lao 2024-04-11 18:14:58 +08:00 committed by GitHub
parent d87d4b9b56
commit 617e7cee81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,11 @@ COPY yarn.lock .
RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn \ RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn \
yarn install --frozen-lockfile 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 # build resources
FROM base as builder FROM base as builder