4 ms·
Think 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 SD
by shykes 4y ago
Think 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.