|
@@ -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
|