From 8a402775a778dafb705d6f30dcc8b9a916817739 Mon Sep 17 00:00:00 2001 From: Giovanni Rosa Date: Sat, 15 Apr 2023 01:37:08 +0200 Subject: [PATCH] Fix for Dockerfile smell DL3009 Signed-off-by: Giovanni Rosa --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ddff009..50f1dcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,9 @@ LABEL maintainer="dev@tubularlabs.com" # Install Java 8 RUN apt-get update && apt-get install -y software-properties-common RUN apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main' -RUN apt-get update && apt-get install -y openjdk-8-jdk +RUN apt-get update && apt-get install -y openjdk-8-jdk \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* # Python env ENV CASS_DRIVER_NO_EXTENSIONS=1