configuration
Configure Container builds for your application.
@nx-tools/nx-container:configuration
This generator is used for setup a existing app to use nx-container
.
It will create a Dockerfile
file at the root of your project, or if there's already a Dockerfile
file, it will be replaced with a new one based on your template selection.
It will also add the container
target to the project.json
file of your project if is required.
Your code will be modified!
This generator will modify your code, so make sure to commit your changes before running it.
Usage
nx g @nx-tools/nx-container:configuration
When running this generator, you will be prompted to provide the following:
- The project, as the name of the project you want to generate the configuration for.
- The engine, as the container engine you want to use (docker or podman).
- The template, as the dockerfile template you want to use (empty, nest, next, nginx).
Options:
Prop | Type | Default |
---|---|---|
skipFormat? | boolean | false |
template? | "empty" | "nest" | "next" | "nginx" | empty |
engine? | "docker" | "podman" | docker |
project | string | - |
Last updated on