3 ms·
I did not see how one can build against different Linux distors. The code example shows "golang:latest" image only ...
by melezhik 4y ago
I did not see how one can build against different Linux distors. The code example shows "golang:latest" image only ...
- shykes 4y agoThink of it as Dockerfile but in Go. You can pull any image, or build your own on the fly. Everything you can do in a Dockerfile, you can do in the Dagger Go SDK.
- melezhik 4y agoThat is all ok, however Dockerfile means one builds an image for a certain OS/Linux distribution ( base image or FROM directive) , not just a specific Golang version, I did not find how one can do so in the provided examples
- shykes 4y agoYes, in the example above, "golang:latest" is the name of a docker image: the equivalent in Dockerfile would be "FROM golang:latest". You can use Dagger to pull any image at all from any registry, including any base linux distribution.