From 60f8a6ba9ce5c4bba7fa3ff22710288c8599bbd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franc=CC=A7ois=20Bonelle?= Date: Sat, 18 Jun 2022 20:37:48 +0200 Subject: [PATCH] fix --- telegraf/Dockerfile | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/telegraf/Dockerfile b/telegraf/Dockerfile index b8c2741..d2de355 100755 --- a/telegraf/Dockerfile +++ b/telegraf/Dockerfile @@ -28,6 +28,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends bash ca-certificates curl jq tzdata xz-utils iputils-ping snmp procps lm-sensors libcap2-bin && \ + c_rehash && \ rm -rf /var/lib/apt/lists/* RUN set -ex && \ @@ -55,19 +56,17 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \ rm -f telegraf_${TELEGRAF_VERSION}-1_${ARCH}.deb* RUN curl -J -L -o /tmp/bashio.tar.gz \ - "https://github.com/hassio-addons/bashio/archive/${BASHIO_VERSION}.tar.gz" \ - && mkdir /tmp/bashio \ - && tar zxvf \ + "https://github.com/hassio-addons/bashio/archive/${BASHIO_VERSION}.tar.gz" && \ + mkdir /tmp/bashio && \ + tar zxvf \ /tmp/bashio.tar.gz \ - --strip 1 -C /tmp/bashio \ - \ - && mv /tmp/bashio/lib /usr/lib/bashio \ - && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ - \ - && curl -L -s -o /usr/bin/tempio \ - "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \ - && chmod a+x /usr/bin/tempio \ - && rm -fr \ + --strip 1 -C /tmp/bashio && \ + mv /tmp/bashio/lib /usr/lib/bashio && \ + ln -s /usr/lib/bashio/bashio /usr/bin/bashio && \ + curl -L -s -o /usr/bin/tempio \ + "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" && \ + chmod a+x /usr/bin/tempio && \ + rm -fr \ /tmp/* EXPOSE 8125/udp 8092/udp 8094