make layers smaller

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-03-05 16:35:14 -05:00
parent 81874bb6df
commit 47cfd6b5ec
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -2,6 +2,8 @@ FROM debian:buster
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ENV DEBIAN_FRONTEND noninteractive
# install deps do this in sections so the layers are not mazzive
RUN dpkg --add-architecture i386 \
&& apt-get update && apt-get install -y \
automake \
@ -22,6 +24,10 @@ RUN dpkg --add-architecture i386 \
hdparm \
iperf \
kmod \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
libaudit-dev \
libbabeltrace-ctf-dev \
libc6-dev \
@ -39,6 +45,11 @@ RUN dpkg --add-architecture i386 \
linux-libc-dev \
linux-libc-dev:i386 \
linux-perf \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& ln -snf /usr/bin/perf_4.9 /usr/bin/perf
RUN apt-get update && apt-get install -y \
make \
nfs-common \
openssl \
@ -57,8 +68,7 @@ RUN dpkg --add-architecture i386 \
wget \
zlib1g-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& ln -snf /usr/bin/perf_4.9 /usr/bin/perf
&& rm -rf /var/lib/apt/lists/*
ENV KERNEL_VERSION v4.13
ENV LKP_GIT_WORK_TREE /usr/src/linux