/docker-java-parser

Dockerfile parser in Java

Primary LanguageJavaApache License 2.0Apache-2.0

docker-java-parser

Build Status mvnrepository

A parser, linter and syntax checker for Dockerfiles for Java.

Dockerfile df = Dockerfile.parse(new File("Dockerfile"));
df.getFrom(); // alpine:3.7
df.getLabels(); // {maintainer=ThStock@example.org}
df.getEnv(); // {VERSION=9}

See also