Prevent python2 installation

The python-requests package requires python2 to be installed, when
python3 only is basically needed. It will exclude CVEs related to python2.
Futhermore, it will decrease the image size.

Change-Id: I8ed6fe1c5e8cb7d49ae72763716ee480198bfe20
This commit is contained in:
astebenkova 2021-03-24 21:25:08 +02:00
parent f4cc60b8b1
commit 2f640f4a35
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ ENV NAGIOS_PLUGIN_DIR /usr/lib/nagios/plugins
ENV VERSION=4.4.3
RUN apt-get -o Acquire::ForceIPv4=true -y update \
&& apt-get -y install curl apache2 checkinstall unzip libapache2-mod-php snmp snmpd snmp-mibs-downloader jq python-requests \
&& apt-get -y install curl apache2 checkinstall unzip libapache2-mod-php snmp snmpd snmp-mibs-downloader jq python3-requests \
&& apt-get -y install --no-install-recommends monitoring-plugins python3-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*