builder

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: Apache-2.0, MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package builder turns app source into a Dockerfile by detecting the stack.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct{ From, To string }

type Builder

type Builder interface {
	Name() string
	Dockerfile(port int, env map[string]string) (string, error)
}

func Custom

func Custom(base, install, build, start, static string) Builder

func Select

func Select(dir, dockerfile string) (Builder, error)

type Plan

type Plan struct {
	Base       string
	CacheFiles []string
	Install    []string
	Build      []string
	Env        map[string]string

	// RuntimeBase, when set, makes the build multi-stage: the final image is RuntimeBase with Copy artifacts from the build stage.
	RuntimeBase string
	Copy        []Artifact

	// Exactly one of StaticDir or Start must be set.
	StaticDir string
	Start     []string

	Port int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL