container: make dockerfile variable officially supported and more modular
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user