Skip to contents

Replace a line in a dockerfile

Usage

dfm_replace_line(dockerfile, line_num, new_line)

Arguments

dockerfile

A dockerfile object

line_num

Line number to replace

new_line

New line content

Value

Updated dockerfile object