File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 sudo : yes
1111 git :
1212 repo="{{ repo }}"
13- dest="{{ build_dir }}/{{ name }}"
13+ dest="{{ build_dir }}/{{ name }}/repo "
1414 version="{{ git_branch }}"
1515 update=yes
1616 accept_hostkey=True
Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ RUN {{ command }}
2222{% endif %}
2323
2424# Add package.json from the current build context (`.` is the repo) first
25- ADD ./package.json /{{ name }}/package.json
25+ ADD ./repo/ package.json /{{ name }}/package.json
2626
2727# install, should will skip if no package.json change
2828WORKDIR /{{ name }}
2929RUN npm install --production
3030
3131# move the current build context (`.` is the repo) to /{{ name }}
32- ADD . /{{ name }}
32+ ADD ./repo /{{ name }}
3333
3434{% if dockerfile_post_install_commands is defined %}
3535{% for command in dockerfile_post_install_commands %}
You can’t perform that action at this time.
0 commit comments