From f5e0e7c159da4a4389bfcc2ba0ed2c14118e97b3 Mon Sep 17 00:00:00 2001 From: dosas Date: Tue, 30 Jan 2024 11:04:49 +0100 Subject: [PATCH] Fixed some linter warnings DL3009 info: Delete the apt-get lists after installing something DL3015 info: Avoid additional packages by specifying `--no-install-recommends` --- Containerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 1c9b6c3..e95436f 100644 --- a/Containerfile +++ b/Containerfile @@ -3,4 +3,8 @@ FROM postgres:${POSTGRESQL_VERSION} COPY Makefile *.control *.sql /src/ -RUN apt-get update && apt-get -y -qq install make && make -C /src install && apt-get clean +RUN apt-get update \ + && apt-get -y -qq install --no-install-recommends make \ + && make -C /src install \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/*