diff --git a/Dockerfile b/Dockerfile index 9e1e727..301919a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM telegraf:1.27.1 +FROM telegraf:1.29.2 # Install required packages RUN apt-get update \ @@ -10,12 +10,15 @@ RUN apt-get update \ gnupg-agent \ software-properties-common \ python3-distutils \ - && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ - && python3 get-pip.py --prefix=/usr/local \ - && python3 -m pip install requests \ - && pip install unidecode \ + python3-pip \ + python3-full + +# Installation module necessaire pour le script python +RUN pip3 install requests --break-system-packages \ + && pip3 install unidecode --break-system-packages \ && rm /entrypoint.sh + ADD --chmod=1755 entrypoint.sh / ADD freebox-monit.py /usr/local/py/ ADD telegraf.conf /etc/telegraf/