Replies: 1 comment
-
|
The first time you run The key to seeing good caching results is to not change the image name for your application. The cache is scoped to the image name, so if you change the image name, you're getting a new build with no cache. If you have further questions about whether something is or isn't cached, please post the output of your builds and indicate if it's a first build or subsequent build. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I used the following command to build the vue project, and when I built it on another server with the same command, it still took longer than not using cache-image
command:
pack build registry.cn-hangzhou.aliyuncs.com/kpack/ruoyi-ui:2.0.0
--path ./ruoyi-ui/
--builder registry.cn-hangzhou.aliyuncs.com/kpack/paketo-buildpacks-builder:base
--env "BP_NODE_RUN_SCRIPTS=build"
--env "NODE_ENV=development"
--pull-policy if-not-present
--cache-image registry.cn-hangzhou.aliyuncs.com/kpack/nodejs-cache:latest
--publish
Beta Was this translation helpful? Give feedback.
All reactions