Clean apt archives and source directories in Dockerfile

Signed-off-by: Michal Rostecki <michal@kinvolk.io>
This commit is contained in:
Michal Rostecki 2016-12-14 11:20:38 +01:00
parent 083933fb90
commit 5032f434f3
1 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,8 @@ RUN apt-get update && apt-get install -y \
protobuf-c-compiler \ protobuf-c-compiler \
protobuf-compiler \ protobuf-compiler \
python-minimal \ python-minimal \
--no-install-recommends --no-install-recommends \
&& apt-get clean
# install bats # install bats
RUN cd /tmp \ RUN cd /tmp \
@ -34,7 +35,8 @@ ENV CRIU_VERSION 1.7
RUN mkdir -p /usr/src/criu \ RUN mkdir -p /usr/src/criu \
&& curl -sSL https://github.com/xemul/criu/archive/v${CRIU_VERSION}.tar.gz | tar -v -C /usr/src/criu/ -xz --strip-components=1 \ && curl -sSL https://github.com/xemul/criu/archive/v${CRIU_VERSION}.tar.gz | tar -v -C /usr/src/criu/ -xz --strip-components=1 \
&& cd /usr/src/criu \ && cd /usr/src/criu \
&& make install-criu && make install-criu \
&& rm -rf /usr/src/criu
# install shfmt # install shfmt
RUN mkdir -p /go/src/github.com/mvdan \ RUN mkdir -p /go/src/github.com/mvdan \