keep debian based images smaller

This commit is contained in:
Paul Voss 2016-08-06 15:32:18 +02:00
parent 51e205f2ce
commit 31ec2cedb9
2 changed files with 6 additions and 4 deletions

View File

@ -1,10 +1,11 @@
FROM debian:8
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:ansible/ansible \
&& apt-get update \
&& apt-get install -y \
&& apt-get install -y --no-install-recommends \
ansible \
&& apt-get autoclean

View File

@ -1,10 +1,11 @@
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:ansible/ansible \
&& apt-get update \
&& apt-get install -y \
&& apt-get install -y --no-install-recommends \
ansible \
&& apt-get autoclean