From ad30f52eed8a948b92ccbfc4400a12116565f094 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 31 Oct 2018 16:42:04 +0100 Subject: [PATCH] Dockerfile: Delete the apt-get lists after installing This fixes an issue reported by Codacy and Hadolint. Signed-off-by: Stefan Weil --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 196927b7..abf97425 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,9 @@ FROM ubuntu LABEL maintainer="Ian Blenke " 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