DockerfileModel 0.5.0
Pre-release
Pre-release
This .NET library provides a structured model of the Dockerfile syntax for the purposes of parsing and generating Dockerfiles. This release is feature complete and considered a release candidate. It provides parsed models of all Dockerfile instructions and their underlying syntax.
New features
- Support for
from
flag inCOPY
instruction - Add support for
LABEL
instruction - Add support for
MAINTAINER
instruction - Add support for
ONBUILD
instruction - Add support for
SHELL
instruction - Add support for
STOPSIGNAL
instruction - Add support for
USER
instruction - Add support for
VOLUME
instruction - Add support for
WORKDIR
instruction
Design changes
- Redesign identifier token
- Support line continuations on input to
KeywordToken
- Redesign command-related APIs
- Add support for the
chmod
flag - Support multiple declarations in a single
ARG
instruction - Support env option for secret mounts
- Rename ChangeOwner to UserAccount
- Expose IList of exec-form command value tokens
- Rename class for CMD instruction
Bug fixes
- Fix
ENV
inst parsing with newline - Fix parsing of empty line continuations for commands
- Flow escape character
- Fix command parsing for
RUN
instruction - Fix parsing of spaces for
ENV
instruction - Fix variable character parsing
- Fix parsing of literals containing multiple quote pairs
- Allow non-uppercase instructions
- Fix variable resolution of aggregate tokens
Download
Download the NuGet package: DockerfileModel