/pydockerfile

Simple Dockerfile parser for python

Primary LanguagePythonMIT LicenseMIT

https://travis-ci.org/sbuss/pydockerfile.svg?branch=master https://codecov.io/github/sbuss/pydockerfile/coverage.svg?branch=master

pydockerfile

pydockerfile gives simplistic Dockerfile parsing. It performs no validation.

Installation

pip install pydockerfile

Usage

import pydockerfile
dockerfile = pydockerfile.parse_file('/path/to/Dockerfile')
assert dockerfile.FROM