dockerfile-parser-rs
The ultimate Rust library for parsing, modifying, and generating Dockerfiles.
Instructions
- ADD
- ARG
- CMD
- COPY
- ENTRYPOINT
- ENV
- EXPOSE
- FROM
- LABEL
- RUN
- SHELL
- USER
- VOLUME
- WORKDIR
Note: In addition to the official supported Dockerfile instructions, this library also supports placeholders for empty lines and comments.
Install
Run the following Cargo command in your project directory:
Example
use PathBuf;
use Dockerfile;
use Instruction;