dockerfile

package
v0.0.0-...-80108ba Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package dockerfile is the planner for projects already include Dockerfile.

Index

Constants

View Source
const ConfigDockerfileName = "dockerfile.name"

ConfigDockerfileName is the key of the Dockerfile name in the config.

Variables

View Source
var ErrNoDockerfile = errors.New("no dockerfile in this environment")

ErrNoDockerfile is the error when there is no Dockerfile in the project.

Functions

func FindDockerfile

func FindDockerfile(ctx *dockerfilePlanContext) (string, error)

FindDockerfile finds the Dockerfile in the project.

func GenerateDockerfile

func GenerateDockerfile(meta types.PlanMeta) (string, error)

GenerateDockerfile generates the Dockerfile for static files.

func GetExposePort

func GetExposePort(ctx *dockerfilePlanContext) string

GetExposePort gets the exposed port of the Dockerfile project.

func GetMeta

func GetMeta(opt plan.NewPlannerOptions) types.PlanMeta

GetMeta gets the meta of the Dockerfile project.

func NewIdentifier

func NewIdentifier() plan.Identifier

NewIdentifier returns a new Dockerfile identifier.

func NewPacker

func NewPacker() packer.Packer

NewPacker returns a new Deno packer.

func ReadDockerfile

func ReadDockerfile(ctx *dockerfilePlanContext) ([]byte, error)

ReadDockerfile reads the Dockerfile in the project.

Types

This section is empty.

Jump to

Keyboard shortcuts

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