We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4084fe5 commit f2138bbCopy full SHA for f2138bb
1 file changed
ansible/roles/builder/templates/basic_node/Dockerfile
@@ -25,6 +25,12 @@ RUN {{ command }}
25
# Add package.json from the current build context (`.` is the repo) second
26
ADD ./repo/package.json /{{ name }}/package.json
27
28
+# Add shrinkwrap from the current build context (`.` is the repo) first
29
+# If we change a non first-level dependency, this will break cache as expected
30
+{% if has_shrinkwrap %}
31
+ADD ./repo/npm-shrinkwrap.json /{{ name }}/npm-shrinkwrap.json
32
+{% endif %}
33
+
34
# install, should will skip if no package.json change
35
WORKDIR /{{ name }}
36
RUN npm install --production
0 commit comments