@nx/node:setup-docker

Nx Node Docker Options Schema.

Usage

nx generate setup-docker ...

By default, Nx will search for setup-docker in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nx/node:setup-docker ...
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

nx g setup-docker ... --dry-run

Options

project

string

The name of the project

buildTargetName

string
Default: build

The name of the build target

targetName

string
Default: docker-build

The name of the target to create