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:
parent
f4cc60b8b1
commit
2f640f4a35
@ -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/*
|
||||
|
Loading…
Reference in New Issue
Block a user