po3rin / gockerfile

:whale: gockerfile is a YAML Docker-compatible alternative to the Dockerfile Specializing in simple go server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use git source

tonistiigi opened this issue · comments

Just a comment after looking at the code.

Run(llb.Shlex("git clone https://" + c.Repo + ".git /go/src/" + c.Repo)).
could use the builtin git source llb.Git() https://godoc.org/github.com/moby/buildkit/client/llb#Git instead (probably with AddMount()). The benefit of git source is that it automatically invalidates the cache when remote repo gets updated.

Thanks for the advice. I will try it soon.

llb.Git() is useful! thanks!!