dockerfile-parser-rs
A pure Rust library for parsing, modifying, and generating Dockerfiles.
Instructions
- ADD
- ARG
- CMD
- COPY
- ENTRYPOINT
- ENV
- EXPOSE
- FROM
- LABEL
- RUN
- USER
- VOLUME
- WORKDIR
Note: In addition to the official supported Dockerfile instructions, this library also supports placeholders for empty lines and comments.
Installation
Example
use PathBuf;
use Dockerfile;
use Instruction;