Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DockerBuilder

Builds Docker images from Dockerfiles

Detect's the special # dockta comment and,

  • sends the instructions prior to the comment to Docker to be built as normal and
  • applies all following instructions into a single layer

Hierarchy

  • DockerBuilder

Index

Methods

Methods

build

  • build(dir: string, name?: undefined | string, dockerfile?: string): Promise<void>
  • Build a Docker image for a project

    Parameters

    • dir: string

      The project directory

    • Optional name: undefined | string

      The name to tag the image with

    • Default value dockerfile: string = "Dockerfile"

      The name of the Dockerfile within dir to use for the build

    Returns Promise<void>

Generated using TypeDoc