小编col*_*ega的帖子

Golang compilation cache from Docker

I'm using the official golang alpine image to compile my source code (my host machine is a Mac), and I've noticed that even when mounting whole $GOPATH inside of the container it doesn't use cached data from previous builds. I checked that it creates it in the $GOPATH/pkg directory, but it does not affect the subsequent builds speed.

However, if I reuse the same container for several compilation, it does make use of some kind of cache, you can see …

caching build go docker

5
推荐指数
2
解决办法
2252
查看次数

标签 统计

build ×1

caching ×1

docker ×1

go ×1