Change order in build process

This commit is contained in:
Bert Van Vreckem 2015-12-12 11:36:33 +01:00
parent 0060d6d1c8
commit 5260215d28
2 changed files with 2 additions and 2 deletions

View file

@ -19,8 +19,8 @@ RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
# Install Ansible inventory file
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
COPY requirements.yml /etc/ansible/requirements.yml
COPY test.yml /etc/ansible/test.yml
RUN ansible-galaxy install -r /etc/ansible/requirements.yml
COPY test.yml /etc/ansible/test.yml
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/usr/sbin/init"]

View file

@ -7,6 +7,6 @@ RUN apt-get install -y ansible
# Install Ansible inventory file
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
COPY requirements.yml /etc/ansible/requirements.yml
COPY test.yml /etc/ansible/test.yml
RUN ansible-galaxy install -r /etc/ansible/requirements.yml
COPY test.yml /etc/ansible/test.yml