19 lines
419 B
Docker
19 lines
419 B
Docker
|
# Molecule managed
|
||
|
|
||
|
{% if item.registry is defined %}
|
||
|
FROM {{ item.registry.url }}/{{ item.image }}
|
||
|
{% else %}
|
||
|
FROM {{ item.image }}
|
||
|
{% endif %}
|
||
|
|
||
|
{% if item.env is defined %}
|
||
|
{% for var, value in item.env.items() %}
|
||
|
{% if value %}
|
||
|
ENV {{ var }} {{ value }}
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
|
||
|
RUN apt-get update && \
|
||
|
apt-get install -y python3 sudo bash ca-certificates iproute2 python-apt-common \
|
||
|
&& apt-get clean
|