builder

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 }

Artifact is a file copied from the build stage into the runtime image.

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

Custom builds an app from an explicit recipe in skiff.toml instead of auto-detection — the escape hatch short of a full Dockerfile.

func Select

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

type Plan

type Plan struct {
	Base       string            // build/runtime base image
	CacheFiles []string          // manifest files to copy before Install (layer caching)
	Install    []string          // install commands
	Build      []string          // build commands (empty if none)
	Env        map[string]string // env available at build time (ENV in the build stage)

	// Multi-stage server: when RuntimeBase is set, the final image is RuntimeBase
	// with artifacts copied from the build stage (e.g. a compiled Go binary).
	RuntimeBase string
	Copy        []Artifact

	// Exactly one of these says how to serve:
	StaticDir string   // serve this directory of static files, or
	Start     []string // run this command (rendered as an exec-form CMD)

	Port int
}

Plan is a runtime-agnostic description of how to build and serve an app. A stack builder produces one; render turns it into a Dockerfile. This is the seam every language and framework flows through.

Jump to

Keyboard shortcuts

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