Clean apt archives and source directories in Dockerfile
Signed-off-by: Michal Rostecki <michal@kinvolk.io>
This commit is contained in:
parent
bd585c2fca
commit
6dc28dc766
1 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,8 @@ RUN apt-get update && apt-get install -y \
|
||||||
python-minimal \
|
python-minimal \
|
||||||
libglib2.0-dev \
|
libglib2.0-dev \
|
||||||
libapparmor-dev \
|
libapparmor-dev \
|
||||||
--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 runc
|
# Install runc
|
||||||
ENV RUNC_COMMIT cc29e3dded8e27ba8f65738f40d251c885030a28
|
ENV RUNC_COMMIT cc29e3dded8e27ba8f65738f40d251c885030a28
|
||||||
|
|
Loading…
Reference in a new issue