From dc940012f40a314d6052a4a92785360806e1d35a Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 6 Aug 2022 20:28:30 +0200 Subject: [PATCH] DL3008,3009 --- Dockerfile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b5acb73..7d9f5e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,26 @@ FROM ubuntu:20.04 # install and configure munin -RUN apt-get update -qq && RUNLEVEL=1 DEBIAN_FRONTEND=noninteractive \ - apt-get install -y -qq cron munin nginx apache2 wget libapache2-mod-fcgid libcgi-fast-perl ssmtp mailutils curl tzdata autoconf +# hadolint ignore=DL3008 + +# hadolint ignore=DL3008 +RUN apt-get update && \ + apt-get -y --no-install-recommends install \ + cron \ + munin \ + nginx \ + apache2 \ + wget \ + libapache2-mod-fcgid \ + libcgi-fast-perl \ + ssmtp \ + mailutils \ + curl tzdata \ + autoconf + && apt-get clean && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* + RUN (cp /etc/munin/apache24.conf /etc/apache2/sites-available/000-default.conf) RUN (sed -i 's/^Alias.*/Alias \/ \/var\/cache\/munin\/www\//g' /etc/apache2/sites-available/000-default.conf) RUN (sed -i 's/Allow from .*/Satisfy Any/g' /etc/apache2/sites-available/000-default.conf)