docker_pkg.dockerfile
Dockerfile.template processing
The files are Jinja2 templates, the class provides built-in templates to ease
writing Dockerfiles.
Functions
Classes
-
class docker_pkg.dockerfile.TemplateEngine(path: str)[source]
Bases: object
-
known_images: Set[str] = {}
-
config: Dict[str, Any] = {}
-
env: Environment = <jinja2.environment.Environment object>
-
classmethod setup(config: Dict[str, Any], known_images: Set[str])[source]
-
classmethod setup_filters()[source]
-
classmethod setup_apt_install()[source]
-
classmethod setup_apt_remove()[source]
-
docker_pkg.dockerfile.from_template(path: str, name: str) → Template[source]
-
docker_pkg.dockerfile.has_numeric_user(dockerfile: str) → bool[source]