Skip to main content

render_dockerfile

Function render_dockerfile 

Source
pub fn render_dockerfile(df: &Dockerfile) -> String
Expand description

Serialize a (presumably already variable-substituted) Dockerfile IR back to canonical Dockerfile text.

Pure function: it does not perform variable expansion. Instruction order is preserved exactly as it appears in the IR. The output round-trips through Dockerfile::parse to a structurally-equivalent IR.