From 0d4760eaac6ea4b0f89b36f932e7b300875e28a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Thu, 1 Feb 2018 09:26:44 +0100 Subject: [PATCH] Use absolute path in install_pip macro This lets us use the macro in the case there was a WORKDIR instruction that changed the working directory from / earlier in the dockerfile. Change-Id: I2369c9997ef189e7084fac7b5ace014f6f76d698 Closes-Bug: #1746682 --- docker/macros.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/macros.j2 b/docker/macros.j2 index 616172ea67..d01709271a 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -24,7 +24,7 @@ {% macro install_pip(packages, constraints = true) %} {%- if packages is sequence and packages|length > 0 -%} pip --no-cache-dir install --upgrade{{ ' ' }} - {%- if constraints %}-c requirements/upper-constraints.txt {% endif -%} + {%- if constraints %}-c /requirements/upper-constraints.txt {% endif -%} {{ packages | join(' ') }} {%- else -%} true