Skip to content

Commit c96dc37

Browse files
author
Anandkumar Patel
committed
add new line to EOF, add depth 1 to pull, update Dockerfile context
1 parent 2e665a4 commit c96dc37

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

ansible/ansible.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
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

ansible/roles/builder/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
update=yes
1616
accept_hostkey=True
1717
force=yes
18+
depth=1
1819

1920
- name: copy dockerfile to build folder
2021
sudo: yes

ansible/roles/builder/templates/basic_node/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
2525
ADD ./package.json /{{ name }}/package.json
2626

2727
# install, should will skip if no package.json change
2828
WORKDIR /{{ name }}
2929
RUN npm install --production
3030

31-
# Add the rest of the repo
31+
# move the current build context (`.` is the repo) to /{{ name }}
3232
ADD . /{{ name }}
3333

3434
{% if dockerfile_post_install_commands is defined %}
@@ -39,4 +39,3 @@ RUN {{ command }}
3939

4040
# Define default command.
4141
CMD ulimit -c unlimited && /usr/local/bin/npm {{ npm_start_command | default('start') }} > /var/log/{{ name }}.log 2>&1
42-

0 commit comments

Comments
 (0)