container: make dockerfile variable officially supported and more modular

This commit is contained in:
uumas
2023-07-05 15:41:42 +03:00
parent 8812459beb
commit 4d9edf1532
5 changed files with 17 additions and 11 deletions

View File

@@ -1,9 +1,6 @@
# {{ ansible_managed }}
FROM {{ docker_image }}
{% if dockerfile.run is iterable %}
{% for cmd in dockerfile.run %}
RUN {{ cmd }}
{% for item in dockerfile %}
{{ item }}
{% endfor %}
{% endif %}