Skip to content

Commit

Permalink
Dockerfile: Delete the apt-get lists after installing
Browse files Browse the repository at this point in the history
This fixes an issue reported by Codacy and Hadolint.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Nov 2, 2018
1 parent 0869fdf commit ad30f52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ FROM ubuntu
LABEL maintainer="Ian Blenke <[email protected]>"

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

0 comments on commit ad30f52

Please sign in to comment.