DL3008,3009

This commit is contained in:
Michael Grote 2022-08-06 20:28:30 +02:00
parent 7baa5df8eb
commit dc940012f4

View file

@ -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)