Browse Source

Improve Jinja2 template logic a bit

Robin Schneider 6 years ago
parent
commit
146525db91
1 changed files with 1 additions and 2 deletions
  1. 1 2
      docker/Dockerfile.j2

+ 1 - 2
docker/Dockerfile.j2

@@ -86,8 +86,7 @@ RUN rustup set profile minimal
 {% if "alpine" in target_file %}
 ENV USER "root"
 
-{% endif %}
-{% if "aarch64" in target_file or "armv" in target_file %}
+{% elif "aarch64" in target_file or "armv" in target_file %}
 # Install required build libs for {{ package_arch_name }} architecture.
 RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \
         /etc/apt/sources.list.d/deb-src.list \