From 617e7cee8164ee39b6ca9c639888a17a12284cc9 Mon Sep 17 00:00:00 2001 From: Lao Date: Thu, 11 Apr 2024 18:14:58 +0800 Subject: [PATCH] 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 --- web/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/Dockerfile b/web/Dockerfile index 5928cc29b0..175b5916c1 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -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