This library provides a convenient way to programmatically generate Dockerfiles using Rust.
Dockerfiles instructions can be generated using structured and type-safe interfaces, or they can be added flexibly in raw form.
Quickstart
[]
= "0.1.3"
use Dockerfile;
use ;
Type-safe support
Dockerfile instructions can be created from a string or with instruction builders. Instruction builders provide structured and type-safe interfaces to build instructions.
use Dockerfile;
use EXPOSE;
use ExposeBuilder;
= EXPOSE from;
let expose_from_builder = builder
.port
.protocol
.build?;
assert_eq!;
let dockerfile = default
.push;
assert_eq!;
Ok
}