File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[defaults]
22# Required so `sudo: yes` does not lose the environment variables, which hold the ssh-agent socket
3- sudo_flags =-HE
3+ sudo_flags =-HE
Original file line number Diff line number Diff line change 1515 update=yes
1616 accept_hostkey=True
1717 force=yes
18+ depth=1
1819
1920- name : copy dockerfile to build folder
2021 sudo : yes
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ RUN {{ command }}
2121{% endfor %}
2222{% endif %}
2323
24- # Add Package json first
24+ # Add package. json from the current build context (`.` is the repo) first
2525ADD ./package.json /{{ name }}/package.json
2626
2727# install, should will skip if no package.json change
2828WORKDIR /{{ name }}
2929RUN npm install --production
3030
31- # Add the rest of the repo
31+ # move the current build context (`.` is the repo) to /{{ name }}
3232ADD . /{{ name }}
3333
3434{% if dockerfile_post_install_commands is defined %}
@@ -39,4 +39,3 @@ RUN {{ command }}
3939
4040# Define default command.
4141CMD ulimit -c unlimited && /usr/local/bin/npm {{ npm_start_command | default('start' ) }} > /var/log/{{ name }}.log 2>&1
42-
You can’t perform that action at this time.
0 commit comments