Improve Jinja2 template logic a bit
This commit is contained in:
parent
1698b43f9b
commit
146525db91
|
@ -86,8 +86,7 @@ RUN rustup set profile minimal
|
||||||
{% if "alpine" in target_file %}
|
{% if "alpine" in target_file %}
|
||||||
ENV USER "root"
|
ENV USER "root"
|
||||||
|
|
||||||
{% endif %}
|
{% elif "aarch64" in target_file or "armv" in target_file %}
|
||||||
{% if "aarch64" in target_file or "armv" in target_file %}
|
|
||||||
# Install required build libs for {{ package_arch_name }} architecture.
|
# Install required build libs for {{ package_arch_name }} architecture.
|
||||||
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \
|
||||||
/etc/apt/sources.list.d/deb-src.list \
|
/etc/apt/sources.list.d/deb-src.list \
|
||||||
|
|
Loading…
Reference in New Issue