File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 src : " {{ dockerfile }}"
5252 dest : " {{ build_dir }}/{{ name }}"
5353
54+ - name : copy .dockerignore file into build folder
55+ tags : deploy
56+ become : true
57+ template :
58+ src : " .dockerignore"
59+ dest : " {{ build_dir }}/{{ name }}"
60+
5461- name : copy secrets into build dir
5562 tags : [ deploy ]
5663 become : true
Original file line number Diff line number Diff line change 1+ .git
Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ WORKDIR /{{ name }}
4242RUN npm install --production
4343
4444# move the current build context (`.` is the repo) to /{{ name }}
45- ADD ./repo ./
46- RUN rm -rf ./.git
45+ ADD ./repo /{{ name }}
4746
4847{% if dockerfile_post_install_commands is defined %}
4948{% for command in dockerfile_post_install_commands %}
@@ -52,6 +51,7 @@ RUN {{ command }}
5251{% endif %}
5352
5453RUN rm /root/.ssh/id_rsa
54+ RUN rm /root/.ssh/known_hosts
5555
5656# Define default command.
5757CMD ulimit -c unlimited && /usr/local/bin/npm {{ npm_start_command | default('start' ) }}
You can’t perform that action at this time.
0 commit comments