diff --git a/promtail/Dockerfile b/promtail/Dockerfile index 2d20e79..17ea271 100644 --- a/promtail/Dockerfile +++ b/promtail/Dockerfile @@ -5,6 +5,7 @@ FROM ${BUILD_FROM} # https://github.com/mikefarah/yq/releases ARG YQ_VERSION=4.44.3 +ARG PROMTAIL_VERSION=3.2.1 ARG BUILD_ARCH @@ -39,7 +40,14 @@ RUN case "${BUILD_ARCH}" in \ chmod +x /etc/services.d/promtail/*; # Add promtail -COPY --from=grafana/promtail:latest /usr/bin/promtail /usr/bin/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/promtai && \ + chmod +x /usr/bin/promtai && \ + rm promtail-linux-amd64.zip && \ + apk del unzip RUN /usr/bin/promtail --version WORKDIR /data/promtail