Skip to content

Commit 32e8478

Browse files
committed
Merge pull request #286 from CodeNow/add-shrinkwrap-to-dockerfile
Adding shrinkwrap to dockerfile
2 parents 24b19ef + e1f4332 commit 32e8478

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • ansible/roles/builder/templates/basic_node

ansible/roles/builder/templates/basic_node/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ RUN {{ command }}
2424
# Add package.json from the current build context (`.` is the repo) first
2525
ADD ./repo/package.json /{{ name }}/package.json
2626

27+
{% if name in ['api', 'api-worker'] %}
28+
ADD ./repo/npm-shrinkwrap.json /{{ name }}/npm-shrinkwrap.json
29+
{% endif %}
30+
2731
# install, should will skip if no package.json change
2832
WORKDIR /{{ name }}
2933
RUN npm install --production

0 commit comments

Comments
 (0)