Browse Source

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>
Lao 1 year ago
parent
commit
617e7cee81
1 changed files with 5 additions and 0 deletions
  1. 5 0
      web/Dockerfile

+ 5 - 0
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