-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Which sources does --cache-to
and --cache-from
cache for?
#399
Comments
--cache-to
and --cache-from
cache for?--cache-to
and --cache-from
cache for?
|
so |
Only you know your setup, so you use the best cache mechanism for you. |
any suggestion in this case?. but the buildx not provide way to mount host path for |
mv to moby/buildkit#1673 for further discussion |
@morlay,我有几个js写的前端项目,想要用buildKit构建以减少npm install的时间。但是通过jenkins CI构建的时候总是报/app/node_moudles/目录下面找不到安装的依赖,你能帮忙给点建议吗?Dockerfile如下(文件中的一些变量可以忽略):
镜像构建命令:
|
dockerx version: 0.4.2
I expect to cache
/go/pkg/mod
in github workflow cross multi builds.some dockerfile like above:
Then run script to build
The
--mount=cache
not work./go/pkg/mod
always empty (go mod will re download).is
--cache-from
and--cache-to
only cache the build layers?--mount=type=cache
works well if builder not re-create until gc cleanup.if i want to cache the
/go/pkg/mod
, could i have to copy/var/lib/buildkit
from buildkit container?real-world demo https://github.com/querycap/istio/runs/1159405706
The text was updated successfully, but these errors were encountered: