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)