This commit is contained in:
mezned 2024-11-10 12:07:46 +01:00
parent 0e5ee8d667
commit 125d48e626

View File

@ -40,14 +40,13 @@ RUN case "${BUILD_ARCH}" in \
chmod +x /etc/services.d/promtail/*; chmod +x /etc/services.d/promtail/*;
# Add promtail # Add promtail
RUN apk add --no-cache curl tar && \ RUN apk add --no-cache curl tar unzip; \
curl -LO "https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip" && \ curl -LO "https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip"; \
apk add unzip && \ unzip promtail-linux-amd64.zip ; \
unzip promtail-linux-amd64.zip && \ mv promtail-linux-amd64 /usr/bin/promtail; \
mv promtail-linux-amd64 /usr/bin/promtail && \ chmod +x /usr/bin/promtail; \
chmod +x /usr/bin/promtail && \ rm promtail-linux-amd64.zip; \
rm promtail-linux-amd64.zip && \ apk del unzip;
apk del unzip
RUN /usr/bin/promtail --version RUN /usr/bin/promtail --version
WORKDIR /data/promtail WORKDIR /data/promtail