Documentation
¶
Overview ¶
Package dockerfile generates a Dockerfile for a service that doesn't have one, from the language, build and start commands in its spec.
Output is deterministic and deliberately plain, so users can read it, copy it into their repo and take over from there.
Index ¶
Constants ¶
const ( // Filename is the generated Dockerfile's name inside the build context. Filename = "Dockerfile.anyship" // IgnoreFilename is the per-Dockerfile ignore file BuildKit reads for Filename. // It takes precedence over .dockerignore, so it includes that file's rules. IgnoreFilename = Filename + ".dockerignore" // StaticPort is the port generated static-site images serve on. StaticPort = 80 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnsupportedError ¶
type UnsupportedError struct{ Reason string }
UnsupportedError explains why no Dockerfile could be generated.
func (*UnsupportedError) Error ¶
func (e *UnsupportedError) Error() string