DL3008,3009
This commit is contained in:
parent
7baa5df8eb
commit
dc940012f4
1 changed files with 20 additions and 2 deletions
22
Dockerfile
22
Dockerfile
|
@ -1,8 +1,26 @@
|
||||||
FROM ubuntu:20.04
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
# install and configure munin
|
# install and configure munin
|
||||||
RUN apt-get update -qq && RUNLEVEL=1 DEBIAN_FRONTEND=noninteractive \
|
# hadolint ignore=DL3008
|
||||||
apt-get install -y -qq cron munin nginx apache2 wget libapache2-mod-fcgid libcgi-fast-perl ssmtp mailutils curl tzdata autoconf
|
|
||||||
|
# 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 (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/^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)
|
RUN (sed -i 's/Allow from .*/Satisfy Any/g' /etc/apache2/sites-available/000-default.conf)
|
||||||
|
|
Reference in a new issue