From 125d48e626187d105ed4ed237c84ed65179b178c Mon Sep 17 00:00:00 2001 From: mezned Date: Sun, 10 Nov 2024 12:07:46 +0100 Subject: [PATCH] update --- promtail/Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/promtail/Dockerfile b/promtail/Dockerfile index 4970781..5e00562 100644 --- a/promtail/Dockerfile +++ b/promtail/Dockerfile @@ -40,14 +40,13 @@ RUN case "${BUILD_ARCH}" in \ chmod +x /etc/services.d/promtail/*; # Add promtail -RUN apk add --no-cache curl tar && \ - curl -LO "https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip" && \ - apk add unzip && \ - unzip promtail-linux-amd64.zip && \ - mv promtail-linux-amd64 /usr/bin/promtail && \ - chmod +x /usr/bin/promtail && \ - rm promtail-linux-amd64.zip && \ - apk del unzip +RUN apk add --no-cache curl tar unzip; \ + curl -LO "https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip"; \ + unzip promtail-linux-amd64.zip ; \ + mv promtail-linux-amd64 /usr/bin/promtail; \ + chmod +x /usr/bin/promtail; \ + rm promtail-linux-amd64.zip; \ + apk del unzip; RUN /usr/bin/promtail --version WORKDIR /data/promtail