Skip to content

Commit

Permalink
Clean up yum caches after installing dependencies and executing the a…
Browse files Browse the repository at this point in the history
…nsible playbooks
  • Loading branch information
JulianHn committed Jun 21, 2022
1 parent 7bbd75f commit c62ea66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ ADD playbook.yml requirements.yml /opt/setup/

RUN yum -y install epel-release \
&& yum -y install ansible sudo \
&& ansible-galaxy install -p /opt/setup/roles -r requirements.yml
&& ansible-galaxy install -p /opt/setup/roles -r requirements.yml \
&& yum -y clean all \
&& rm -fr /var/cache

RUN ansible-playbook playbook.yml
RUN ansible-playbook playbook.yml \
&& yum -y clean all \
&& rm -fr /var/cache

RUN curl -L -o /usr/local/bin/dumb-init \
https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 && \
Expand Down

0 comments on commit c62ea66

Please sign in to comment.