Skip to content

Commit 27a67c9

Browse files
authored
Merge pull request #1226 from nhlfr/dockerfile-cleanup
Clean apt archives and source directories in Dockerfile
2 parents 083933f + 5032f43 commit 27a67c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ RUN apt-get update && apt-get install -y \
1919
protobuf-c-compiler \
2020
protobuf-compiler \
2121
python-minimal \
22-
--no-install-recommends
22+
--no-install-recommends \
23+
&& apt-get clean
2324

2425
# install bats
2526
RUN cd /tmp \
@@ -34,7 +35,8 @@ ENV CRIU_VERSION 1.7
3435
RUN mkdir -p /usr/src/criu \
3536
&& curl -sSL https://github.com/xemul/criu/archive/v${CRIU_VERSION}.tar.gz | tar -v -C /usr/src/criu/ -xz --strip-components=1 \
3637
&& cd /usr/src/criu \
37-
&& make install-criu
38+
&& make install-criu \
39+
&& rm -rf /usr/src/criu
3840

3941
# install shfmt
4042
RUN mkdir -p /go/src/github.com/mvdan \

0 commit comments

Comments
 (0)