Skip to content

Commit

Permalink
[Docker] Add clean job for reduce images size
Browse files Browse the repository at this point in the history
  • Loading branch information
chusiang committed Apr 18, 2018
1 parent fd15614 commit 542488f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builds/debian8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ ENV PLAYBOOK testlink.ansible.role/setup.yml
RUN echo "===> Run playbook ..." && \
ansible-playbook-wrapper

RUN echo "===> Clean ..." && \
apt-get clean && \
cd /tmp && \
rm -rf Dockerfile run.sh testlink.ansible.role testlink.tar.gz

VOLUME [ "/data" ]
WORKDIR /srv
EXPOSE 80 443
Expand Down
5 changes: 5 additions & 0 deletions builds/ubuntu16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ ENV PLAYBOOK testlink.ansible.role/setup.yml
RUN echo "===> Run playbook ..." && \
ansible-playbook-wrapper

RUN echo "===> Clean ..." && \
apt-get clean && \
cd /tmp && \
rm -rf Dockerfile run.sh testlink.ansible.role testlink.tar.gz

VOLUME [ "/data" ]
WORKDIR /srv
EXPOSE 80 443
Expand Down

0 comments on commit 542488f

Please sign in to comment.