Skip to content

Commit ad30f52

Browse files
committed
Dockerfile: Delete the apt-get lists after installing
This fixes an issue reported by Codacy and Hadolint. Signed-off-by: Stefan Weil <[email protected]>
1 parent 0869fdf commit ad30f52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ FROM ubuntu
44
LABEL maintainer="Ian Blenke <[email protected]>"
55

66
RUN apt-get update
7-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y cmake curl git ruby bundler wget unzip
7+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y cmake curl git ruby bundler wget unzip \
8+
&& apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/*
810
RUN gem install bundler travis --no-ri --no-rdoc
911
RUN git clone --depth 1 https://github.com/travis-ci/travis-build ~/.travis/travis-build
1012
RUN bundle install --gemfile ~/.travis/travis-build/Gemfile

0 commit comments

Comments
 (0)