DockerBuild.Plugins.AssetsPlugins behaviour (DockerBuild v0.11.0) View Source

A behaviour for a plugin for Assets that implements additional callbacks for

  • before_assets_copy
  • assets_compile_commmand

Link to this section Summary

Types

The dockerfile config

The dockerfile

Callbacks

Invoked to discover the command to use for compiling assets.

Invoked before compiling assets

Invoked before copying assets into the docker image

Link to this section Types

Specs

config() :: %DockerBuild.Config{base_config: term(), plugin_configs: term()}

The dockerfile config

Specs

df() :: %DockerBuild.Dockerfile{config: term(), instructions: term()}

The dockerfile

Link to this section Callbacks

Link to this callback

assets_compile_command(config)

View Source (optional)

Specs

assets_compile_command(config()) :: [String.t()] | nil

Invoked to discover the command to use for compiling assets.

Only one plugin should be used that implements this function.

Link to this callback

before_assets_compile(df)

View Source (optional)

Specs

before_assets_compile(df()) :: df()

Invoked before compiling assets

Link to this callback

before_assets_copy(df)

View Source (optional)

Specs

before_assets_copy(df()) :: df()

Invoked before copying assets into the docker image