diff --git a/ansible/roles/builder/templates/basic_node/Dockerfile b/ansible/roles/builder/templates/basic_node/Dockerfile index b8c1c5ba..594ddb5f 100644 --- a/ansible/roles/builder/templates/basic_node/Dockerfile +++ b/ansible/roles/builder/templates/basic_node/Dockerfile @@ -27,7 +27,7 @@ ADD ./repo/package.json /{{ name }}/package.json # Add shrinkwrap from the current build context (`.` is the repo) first # If we change a non first-level dependency, this will break cache as expected -{% if has_shrinkwrap %} +{% if has_shrinkwrap is defined %} ADD ./repo/npm-shrinkwrap.json /{{ name }}/npm-shrinkwrap.json {% endif %}